1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00

websocket: use of sync.Map

Former-commit-id: 8ecb1e6f70380195ce916d4dfc3fe8d41c851995
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-08-08 13:22:00 +03:00
parent 43fd73eab9
commit 51e1b44c72
2 changed files with 103 additions and 113 deletions

View File

@@ -18,6 +18,8 @@ import (
// WS is the current websocket connection
var WS *xwebsocket.Conn
// $ go run main.go server
// $ go run main.go client
func main() {
if len(os.Args) == 2 && strings.ToLower(os.Args[1]) == "server" {
ServerLoop()