Skip to content

Commit

Permalink
fix(useSurrealWS): idCounter reset value
Browse files Browse the repository at this point in the history
  • Loading branch information
sandros94 committed Jun 27, 2024
1 parent 78fdc9d commit 3cfd15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables/surreal-ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function useSurrealWS(
ws,
} = useWebSocket<string>(joinURL(_database.value.ws!, 'rpc'), {
onDisconnected(ws, event) {
idCounter.value = 0
idCounter.value = 2
_onDisconnected?.(ws, event)
},
...opts,
Expand Down

0 comments on commit 3cfd15d

Please sign in to comment.