Skip to content

Commit ff35d39

Browse files
committed
fix(useWS): always buffer messages that are sent using send
1 parent e01b3a4 commit ff35d39

File tree

1 file changed

+1
-1
lines changed
  • src/runtime/app/composables

1 file changed

+1
-1
lines changed

src/runtime/app/composables/ws.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export function useWS<
178178
>(...args: any): boolean {
179179
if (args.length === 1) {
180180
const payload = args[0]
181-
return _send(payload)
181+
return _send(payload, true)
182182
}
183183

184184
const [type, topic, payload] = args as [M['type'], M['topic'], M['payload']]

0 commit comments

Comments
 (0)