socket.io-server-java icon indicating copy to clipboard operation
socket.io-server-java copied to clipboard

No able to see in the network tab

Open shifazahera opened this issue 3 years ago • 4 comments
trafficstars

Hi @trinopoty We are broad casting a message but internally we are seeing that backslashes, escape characters, \n are being added is there a way to prevent it as we are seeing this error in network tab

shifazahera avatar Jul 15 '22 08:07 shifazahera

Hi, what error are you getting? Is the message not delivered as sent?

trinopoty avatar Jul 15 '22 08:07 trinopoty

The message is delivered but backslashes are appended i will give you some example Now:

42["s46","{\n "type": "MESSAGE",\n "channel": {\n "id": 122806,\n "name": "sS\084446",\n ]: expected: 42["s22",{"type":"MESSAGE","channel":{"id":1652,"name":"sSELCN1655938322"]

shifazahera avatar Jul 15 '22 09:07 shifazahera

This is happening automatically getting added

shifazahera avatar Jul 15 '22 09:07 shifazahera

That is expected since the json data is serialized into string for transfer to the server. Are you receiving those extra slashes on your server messages?

trinopoty avatar Aug 02 '23 17:08 trinopoty