Skip to content

How to use Socket.IO in express.js application - Simple example

License

Notifications You must be signed in to change notification settings

xjjdj/express-socket.io

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use Socket.IO in express.js application - Simple example

This repository contains all code to use web socket connection in an Express application. Through Socket.IO client and server emit events and thrugh them they can exchange data. It's a first step to buil realtime application.

Installation

To install and test the code please follow the following steps:

  • Clone or fork the repository
  • Go to the local repository folder and digit
npm install
  • Once all requested modules have been installed digit
npm start

The express application start at: http://localhost:5000/

I created this repository for all of you have trouble in install and configure Socket.IO over ExpressJS. Feel free to send me feedback and issue to improve the example.

References

WebSocket Protocol

WebSocket API

Socket.IO

Nicola Del Gobbo

https://github.com/NickNaso/

https://www.npmjs.com/~nicknaso

https://twitter.com/NickNaso

About

How to use Socket.IO in express.js application - Simple example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.9%
  • HTML 22.1%