瀏覽代碼

Add Websocket Stream type

Shelikhoo 9 年之前
父節點
當前提交
0d60d2449a
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      transport/internet/connection.go

+ 4 - 3
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