yuedun

Results 1 comments of yuedun

``` var SocketConMap = make(map[string]socketio.Conn) server.OnConnect("/", func(s socketio.Conn) error { s.SetContext("") userID := getCookieByName("userID", getCookies(s.RemoteHeader().Get("Cookie"))) fmt.Println("connected:", s.ID(), userID) SocketConMap[userID] = s return nil }) if v, ok := util.SocketConMap[uid]; ok...