m3talstorm / socketio-simple-server

A super simple example of a NodeJS + SocketIO server and client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Socket.io Simple Server

Build Status

A super simple example of a NodeJS + SocketIO server and client

This acts more of a boilerplate/reminder for toy projects

Install

Node

git clone https://github.com/m3talstorm/socketio-simple-server.git
cd socketio-simple-server/
sudo npm install

Usage

Node

// Start the server
sudo npm start
// Start the client (in another shell)
sudo npm run client

If you want the server to listen on a different port (not 8080) then change the PORT variable in both lib/server.js and lib/client.js

About

A super simple example of a NodeJS + SocketIO server and client

License:MIT License


Languages

Language:JavaScript 100.0%