From 0d60d2449af39bb0e992c507a5d1807641afae8e Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Sat, 13 Aug 2016 21:41:13 +0800 Subject: [PATCH] Add Websocket Stream type --- transport/internet/connection.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/transport/internet/connection.go b/transport/internet/connection.go index 61435cbd..a5ce7c2d 100644 --- a/transport/internet/connection.go +++ b/transport/internet/connection.go @@ -15,9 +15,10 @@ type Reusable interface { type StreamConnectionType int const ( - StreamConnectionTypeRawTCP StreamConnectionType = 1 - StreamConnectionTypeTCP StreamConnectionType = 2 - StreamConnectionTypeKCP StreamConnectionType = 4 + StreamConnectionTypeRawTCP StreamConnectionType = 1 + StreamConnectionTypeTCP StreamConnectionType = 2 + StreamConnectionTypeKCP StreamConnectionType = 4 + StreamConnectionTypeWebSocket StreamConnectionType = 8 ) type StreamSecurityType int