func (wsHandler *Websocket) Init() {
	wsHandler.Clients = make(map[string]*websocket.Conn)
	wsHandler.Broadcast = make(chan model.GameAction, 100)
	wsHandler.Upgrader = websocket.Upgrader{
		ReadBufferSize:  1024,
		WriteBufferSize: 1024,
		CheckOrigin: func(_ *http.Request) bool {
			return true
		},
	}
}
// Init initialize the websocket object
Init initialize the websocket object
// Init initialize the websocket object
func (wsHandler *Websocket) Init() {
	wsHandler.Clients = make(map[string]*websocket.Conn)
	wsHandler.Broadcast = make(chan model.GameAction, 100)
	wsHandler.Upgrader = websocket.Upgrader{
		ReadBufferSize:  1024,
		WriteBufferSize: 1024,
		CheckOrigin: func(_ *http.Request) bool {
			return true
		},
	}
}
func ( wsHandler * Websocket ) Init ( ) { wsHandler . Clients = make ( map [ string ] * websocket . Conn ) wsHandler . Broadcast = make ( chan model . GameAction , 100 ) wsHandler . Upgrader = websocket . Upgrader { ReadBufferSize : 1024 , WriteBufferSize : 1024 , CheckOrigin : func ( _ * http . Request ) bool { return true } , } }
Init initialize the websocket object
Init initialize the websocket object