Skip to content

Commit d3b810d

Browse files
authored
Adjust WebSocketWrapper (#250)
Adapt send() method of the `WebSocketWrapper` to support all types that are supported by the underlying websocket send method as well.
1 parent aa1534c commit d3b810d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/protocol/src/client-server-protocol/jsonrpc/websocket-connection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import {
3535
* independent of the underlying WebSocket implementation/library. e.g. one could use Socket.io instead of plain WebSockets
3636
*/
3737
export interface WebSocketWrapper extends Disposable {
38-
send(content: string): void;
38+
send(content: string | ArrayBufferLike | ArrayBufferView): void;
3939
onMessage(cb: (data: any) => void): void;
4040
onError(cb: (reason: any) => void): void;
4141
onClose(cb: (code: number, reason: string) => void): void;

0 commit comments

Comments
 (0)