Explorar el Código

Register ws network

Shelikhoo hace 9 años
padre
commit
cb1356be75
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      common/net/network.go

+ 3 - 0
common/net/network.go

@@ -15,6 +15,9 @@ const (
 
 	// KCPNetwork represents the KCP network.
 	KCPNetwork = Network("kcp")
+
+	// WSNetwork represents the Websocket over HTTP network.
+	WSNetwork = Network("ws")
 )
 
 // Network represents a communication network on internet.