Socket.io + JSON RPC how to use them together

595 views Asked by At

How can I use Socket.io and JSON RPC together? How can I get data from server? I.e I got this code and it's doesen't work:

socket.on('query', { jsonrpc: '2.0', "method": "getOrganizationList", "id": 1}, function(data) {
        console.log(data);
    });
0

There are 0 answers