项目作者: m3talstorm

项目描述 :
A super simple example of a NodeJS + SocketIO server and client
高级语言: JavaScript
项目地址: git://github.com/m3talstorm/socketio-simple-server.git
创建时间: 2016-11-23T20:22:51Z
项目社区:https://github.com/m3talstorm/socketio-simple-server

开源协议:MIT License

下载


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

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

Usage

Node

  1. // Start the server
  2. sudo npm start
  3. // Start the client (in another shell)
  4. 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