https://github.com/fajrulaulia/nodejs-websocket
Simple NodeJS and Webscoket Server-Client Using NodeJS
https://github.com/fajrulaulia/nodejs-websocket
nodejs websocket
Last synced: 2 months ago
JSON representation
Simple NodeJS and Webscoket Server-Client Using NodeJS
- Host: GitHub
- URL: https://github.com/fajrulaulia/nodejs-websocket
- Owner: fajrulaulia
- Created: 2020-01-18T16:06:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-18T16:22:30.000Z (over 6 years ago)
- Last Synced: 2025-12-28T00:59:40.305Z (6 months ago)
- Topics: nodejs, websocket
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node JS Web socket
Example of Node JS websocket
# Packages
* express
* ws
* request
# How to Install and Usage
```sh
$ npm i
```
#### Run Server
if you run Backend, you should add LIMIT for counting, default LIMIT is 10 if you not set LIMIT in Enviroment
```sh
$ LIMIT=20 node app.js
```
#### Run Client
for run Client, you can set MESSAGE by Enviroment Terminal
```sh
$ MESSAGE="Haii Nama saya fajrul" node client.js
```