We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8635a36 commit eae04fdCopy full SHA for eae04fd
1 file changed
internal/app/websocket.go
@@ -117,13 +117,19 @@ func StartWebSocket(url string) {
117
return
118
}
119
120
+ // Print the raw message for debugging
121
+ color.Cyan("[DEBUG] Received WebSocket message: %s", string(message))
122
+
123
var response map[string]interface{}
124
if err := json.Unmarshal(message, &response); err != nil {
125
color.Red("Error unmarshalling WebSocket message: %v", err)
126
WsAuthenticated <- false
127
128
129
130
+ // Print the parsed response for debugging
131
+ color.Cyan("[DEBUG] Parsed WebSocket response: %+v", response)
132
133
if loggedIn, ok := response["logged_in"].(bool); ok && loggedIn {
134
if insertToken, ok := response["insert_token"].(string); ok {
135
// Save the token
0 commit comments