Wednesday, 26 April 2017

How to make a WebSocket frame data to hide/mask

Consider the following use-case:
Say I am making the socket request from the browser (consider socket object is available and status is connected):

enter image description here

So if you inspect in the developer tools of chrome/any browser, you will be able to observe something like below:

enter image description here

I was thinking there is a way to mask or send it in binary format how other messaging services are doing on web socket.

enter image description here

This is how it looks on the other messaging services.

enter image description here

I have tried to explore the full documentation on the socket.io npm module. But unfortunately did not find how to do this.

Can anyone put some light on this or any reference to the document link will be of great help.



via Amol M Kulkarni

No comments:

Post a Comment