Skip to content

Ash310u/Chat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat-app

chat app a Node.js application

Browse link :- Chat app

server (emit) -> client(receive)

	socket.emit 			[ Which sends an event to a specific client ] 
io.emit [ Which sends an event to every connected client ]
socket.broadcast.emit [ Which sends an event to every connected client except for that client ]

setup emitting messages for rooms

	[ "to" is indeed a function, we have pass the string name of the room ]

	io.to().emit 			[ Which sends an event to everybody in a specific room ] 
socket.broadcast.to().emit [ Which sends an event to everybody in a specific room except for that client ]

About

chat app a Node.js application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published