mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
Split connected to WebRTC & WebSocket.
This commit is contained in:
@ -187,9 +187,13 @@ func (ws *WebSocketManagerCtx) handle(connection *websocket.Conn, session types.
|
||||
ticker := time.NewTicker(pingPeriod)
|
||||
|
||||
go func() {
|
||||
// TODO: Change WebSocket connection state.
|
||||
//session.SetConnected(true)
|
||||
|
||||
defer func() {
|
||||
ticker.Stop()
|
||||
ws.logger.Debug().Str("address", connection.RemoteAddr().String()).Msg("handle socket ending")
|
||||
// TODO: Change WebSocket connection state.
|
||||
session.SetConnected(false)
|
||||
}()
|
||||
|
||||
|
Reference in New Issue
Block a user