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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user