This repository was archived by the owner on Jun 29, 2022. It is now read-only.

Description
Received message which is neither a response nor a notification message:
{
"jsonrpc": "2.0",
"id": "d287385e-8e56-4e98-a0ef-f96bc55aa2b6"
}
I get the output as follows but i need to get the message that received to a variable is there a way to do that. I used the below code to send.
rpc.listen({
webSocket,
onConnection: (rpcConnection: rpc.MessageConnection) => {
const notification = new rpc.NotificationType<string, string>('hell');
rpcConnection.listen();
rpcConnection.sendNotification(notification, 'hii');
},
});