You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Emits an event based on the value for the 'event' key.
157
157
// { event: "socket", data: "Hello world" }
158
-
this.$socket.on("socket", () => {});
158
+
this.$socket.$on("socket", () => {});
159
159
```
160
160
161
161
> The [close event handler](https://github.com/deepsourcelabs/nuxt-websocket/blob/main/src/templates/WebSocketManager.ts#L48-L64) attempts reconnection for a close event that is not normal ([connection close code](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/code) other than 1000).
0 commit comments