fix(build): tighten TypeScript build configuration and fix Deno binary websocket sending
This commit is contained in:
@@ -158,7 +158,10 @@ export class DenoAdapter extends BaseAdapter {
|
||||
protocol: socket.protocol,
|
||||
extensions: socket.extensions,
|
||||
send: (data: string) => socket.send(data),
|
||||
sendBinary: (data: Uint8Array | ArrayBuffer) => socket.send(data),
|
||||
sendBinary: (data: Uint8Array | ArrayBuffer) => {
|
||||
const payload = data instanceof ArrayBuffer ? data : new Uint8Array(data);
|
||||
socket.send(payload as BufferSource);
|
||||
},
|
||||
close: (code?: number, reason?: string) => socket.close(code, reason),
|
||||
ping: () => { /* Deno handles ping/pong automatically */ },
|
||||
terminate: () => socket.close(),
|
||||
|
||||
Reference in New Issue
Block a user