done
This commit is contained in:
@@ -30,8 +30,8 @@ export function usePriceSocket(handlers: Handlers) {
|
||||
} else if (msg.type === 'new_post' && handlersRef.current.onNewPost) {
|
||||
handlersRef.current.onNewPost(msg.post)
|
||||
}
|
||||
} catch {
|
||||
// ignore malformed messages
|
||||
} catch (err) {
|
||||
console.warn('[WS] malformed message:', e.data, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user