An open API service indexing awesome lists of open source software.

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

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
```