What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-20 06:34:05
call node js function from javascript
var io = require('socket.io').listen(80); // initiate socket.io server io.sockets.on('connection', function (socket) { socket.emit('news', { hello: 'world' }); // Send data to client // wait for the event raised by the client socket.on('my other e... Add solution