Skip to content

sunny-zuo/ws-echo-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebSocket Echo Server

This is a simple WebSocket echo server written in Node.js. When the server receives a message, that message is sent to all connected clients.

This was originally designed as a server reference for simple multiplayer games for a Flash game development summer camp at the University of Calgary and was intended to be hosted on Heroku's free tier.

Configuration

  • The server utilizes the PORT environment variable as the port, and defaults to 8080.
  • To enable the keep-alive feature for running on Heroku or other platforms that allows inactive apps to sleep, set KEEP_ALIVE to true and set the URL environment variable to point towards your app.

Running the Server

node run start

About

Simple websocket echo server written in Node.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published