Skip to content

Commit 4566486

Browse files
Updated for custom type
1 parent cef0b4e commit 4566486

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/session/socket.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func (m *Manager) handleWebSocketCommands(conn *websocket.Conn, username, sessio
1414

1515
/* infinite loop */
1616
for {
17-
var msg map[string]interface{}
17+
var msg map[string]any
1818
err := conn.ReadJSON(&msg)
1919
if err != nil {
2020
if websocket.IsUnexpectedCloseError(err, websocket.CloseGoingAway, websocket.CloseAbnormalClosure) {
@@ -42,7 +42,7 @@ func (m *Manager) handleWebSocketCommands(conn *websocket.Conn, username, sessio
4242
/* refresh content served */
4343
case "refresh":
4444
/* client requests fresh data - implement based on current context */
45-
val := ctxVal.Value("type")
45+
val := ctxVal.Value(HandlerType)
4646

4747
switch val {
4848
case CtxStreamUserSession:

0 commit comments

Comments
 (0)