If I register an event listener with
pclient.On(route, (data)=>{
//process the data
});
the client stops receiving any new message.
It works OK just for the first message.
If I remove the event listener the client works and receives all the messages from the server.
If I register an event listener with
pclient.On(route, (data)=>{
//process the data
});
the client stops receiving any new message.
It works OK just for the first message.
If I remove the event listener the client works and receives all the messages from the server.