Skip to content

Websockets loger, listen to messages and then logs in to console.

Notifications You must be signed in to change notification settings

petersk8/wsServerLogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wsServerLogs

Websockets loger, listen to messages and then logs the in console. Used mostly as a remote debuging tool.

How to Use

-Clone the project.

-Do a npm install inside the project folder on a terminal

-Open the file index.js and chage the port value as desired.

-Now go to the snipet.js and edit the WS_CLIENT_ADDRESS and replace the value with the machine ip address, and the same port value you use in the index.js file

-On the terminal execute the command node index.js this will start your server application and start listenig for websocket connections.

-Now you can copy the method from the snipet.js file and paste it on yout code to send messages to the server.

-All messages will appear at the terminal screen where the server app is running.

About

Websockets loger, listen to messages and then logs in to console.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published