Skip to content

Does what it says on the tin, thanks to the magic of socket.io and node

Notifications You must be signed in to change notification settings

DDunc/ez-socket-lan-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EZ Socket LAN Chat

EZ Socket Lan Chat is real-time in-browser chat app using Socket.io and Node.js that's configured to be deployed online or through LAN. The server is configured to demonstrate basic server-side emitting in addition to passing data from client to client, but additional server logic is easy to add.

install

npm install

configure for local use

Start your local server on port 3000:

node app.js

Then enter the following in the terminal:

ipconfig getifaddr en0

or

ipconfig getifaddr en1

Now, anyone on your LAN who wants to connect should type the address + :3000 in order to join the chat.

configure for online use

Deploy to your favorite service (Heroku, Docker, Digital Ocean, etc), change port in app.js if desired, then go to the page where it's hosted to start chatting!

About

Does what it says on the tin, thanks to the magic of socket.io and node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published