Skip to content
This repository has been archived by the owner on Nov 12, 2020. It is now read-only.
/ Send-Messages Public archive

Send messages from nodejs http server to browser with socket.io

Notifications You must be signed in to change notification settings

desbouis/Send-Messages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Send-Messages

The goal is to send messages to a nodejs http server that is going to relay these messages to client browsers with socket.io.

Need node.js + npm + socket.io + http server (apache, nginx).
The nodejs server is listening on the port number 8080.
An other http server (apache, nginx) is listening on the standart port 80.
Browsers loads a html page on port number 80 whith little javascript code to connect to nodejs on port number 8080 via socket.io.
The nodejs http server gets a message from the querystring and send it to socket. All connected browsers shows the message.

About

Send messages from nodejs http server to browser with socket.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published