Skip to content

Commit

Permalink
Adjust WebSocketWrapper (eclipse-glsp#250)
Browse files Browse the repository at this point in the history
Adapt send() method of the `WebSocketWrapper` to support all types that are supported by the underlying websocket send method as well.
  • Loading branch information
tortmayr authored and holkerveen committed Dec 21, 2024
1 parent 4c85ee5 commit 61d1a69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {
* independent of the underlying WebSocket implementation/library. e.g. one could use Socket.io instead of plain WebSockets
*/
export interface WebSocketWrapper extends Disposable {
send(content: string): void;
send(content: string | ArrayBufferLike | ArrayBufferView): void;
onMessage(cb: (data: any) => void): void;
onError(cb: (reason: any) => void): void;
onClose(cb: (code: number, reason: string) => void): void;
Expand Down

0 comments on commit 61d1a69

Please sign in to comment.