package data import ( "fmt" "net/http" "git.loafle.net/commons_go/logging" cwfc "git.loafle.net/commons_go/websocket_fasthttp/client" ) type SocketHandlers struct { cwfc.SocketHandlers } func (sh *SocketHandlers) OnConnect(socketContext cwfc.SocketContext, res *http.Response) { logging.Logger().Info(fmt.Sprintf("Probe: client has been connected res[%v]", res)) } func (sh *SocketHandlers) OnDisconnect(soc cwfc.Socket) { logging.Logger().Info(fmt.Sprintf("Auth: client has been disconnected soc[%v]", soc)) } func newSocketHandler() cwfc.SocketHandler { return &SocketHandlers{} }