hapi-io
hapi-io copied to clipboard
sorry i'm new in socket and hapi
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
})
});