https://github.com/tobychui/imus-wsr
IMUS WebSocket Reflector(TM), this simple websocket script reflect all your websocket input to all connected client so you can catch the message with JavaScript.
https://github.com/tobychui/imus-wsr
Last synced: 3 months ago
JSON representation
IMUS WebSocket Reflector(TM), this simple websocket script reflect all your websocket input to all connected client so you can catch the message with JavaScript.
- Host: GitHub
- URL: https://github.com/tobychui/imus-wsr
- Owner: tobychui
- License: mit
- Created: 2017-11-03T12:11:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-03T12:21:41.000Z (over 7 years ago)
- Last Synced: 2025-01-18T02:25:49.793Z (5 months ago)
- Language: JavaScript
- Size: 45.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IMUS-WSR
IMUS WebSocket Reflector(TM), this simple websocket script reflect all your websocket input to all connected client so you can catch the message with JavaScript.## What is this
This is a simple Node.js script that reflect all your incoming websocket message outward to all connected client.
And it will also log the message on the console too, amazing huh?## Instllation
1. Download the whole repo as zip, and make sure you have installed Node.js
2. Unzip the nodews.js to C:/ (i.e. The file is now located at C:/nodews.js)
3. Put the bat file in your "startup" folder, so everytime your server bootup, the server will run automatically.
4. Port forward the port 1010 to your server.
5. Create JavaScript in website that catch the incoming message.## Example Project
For example project, please take a look on my another repo HERE
In the remote.php and minput.php, you can see the standard websocket code working with the IMUS Websocket Reflector(TM)P.S. It is not trademarked. The (TM) is just a part of the project's name. :))