hapi-io icon indicating copy to clipboard operation
hapi-io copied to clipboard

sorry i'm new in socket and hapi

Open ghost opened this issue 8 years ago • 0 comments

how can i make

io.on('connection', function (socket) {
	socket.emit('connected',"Welcom")
	})

or something like

socket.on('disconnect', function () {
	socket.broadcast.emit('user left', {
		: socket.username
	})
});

ghost avatar Jan 26 '17 21:01 ghost