Skip to content

Commit ffc9805

Browse files
committed
fix(browser): ensure proxy is defined
1 parent b5cc835 commit ffc9805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/connect/ws.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ const browserStreamBuilder: StreamBuilder = (client, opts) => {
260260
let { data } = event
261261
if (data instanceof ArrayBuffer) data = Buffer.from(data)
262262
else data = Buffer.from(data as string, 'utf8')
263-
if (!proxy?.destroyed) {
263+
if (proxy && !proxy.destroyed) {
264264
proxy.push(data)
265265
}
266266
}

0 commit comments

Comments
 (0)