The Simplest Real Time Server Side using Socket.IO
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
client
config
events
lib
resources
test
.babelrc
.eslintrc
.gitignore
README.md
app.js
cluster.js
package.json
ws_server.js

README.md

Real-Time-Server-Side

It is a real-time engine using socket.io.

How to setup

  1. Install
git clone https://github.com/tomokazukozuma/Real-Time-Server-Side.git
cd Real-Time-Server-Side
npm install
  1. Start Up

Before executing the command, start the redis server with 6379 port.

Start up with cluster

npm run start:cluster

Start up in one process

npm run start:server

When starting with option

Install babel-cli globally in advance.

npm install -g babel-cli
WsGroup=ws01 babel-node app.js --port 3001

Run Test

npm run test

linter

npm run lint

Client for Testing

After launching the server side, execute the following command.

npm run start:client

or

babel-node client/app.js --port 3001