Sunday, 2 April 2017

Inspect sent messages via websocket from the client

newbie here!

Learning the JavaScript and Nodejs environments I'm working on a websocket project (using the ws node module on the server side)

From the client I use:

connection = new WebSocket('ws://192.168.x.x:1607');

on the server I use:

wsServer.on('request', function(r){   ...});

If I console.log(r), I see an enormous message coming in from the client side and I would like to inspect that sent message from the client (not from the nodejs server) Is that possible? Many thanks!

Is there anyway I could inspect that message from the client side?



via thewall

No comments:

Post a Comment