Skip to content

Commit

Permalink
remove whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed Feb 22, 2024
1 parent 4ba86f6 commit 5ec2cf9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/json-rpc-socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class JsonRpcSocket {
* Sends a JSON-RPC request through the socket and keeps a listener open to read associated responses as they arrive.
* Returns a close method to clean up the listener.
*/
async subscribe(request: JsonRpcRequest, listener: (response: JsonRpcResponse) => void): Promise<{
async subscribe(request: JsonRpcRequest, listener: (response: JsonRpcResponse) => void): Promise<{
response: JsonRpcResponse;
close?: () => Promise<void>;
}> {
Expand Down Expand Up @@ -144,6 +144,5 @@ export class JsonRpcSocket {
*/
send(request: JsonRpcRequest):void {
this.socket.send(Buffer.from(JSON.stringify(request)));
return;
}
}

0 comments on commit 5ec2cf9

Please sign in to comment.