Socket.io Server-side callback
问题 I've successfully made a callback with http://socket.io when the client calls the server socket.on('event', function(data, fn){ fn(null, true); } I was wondering if its possible to do the same but this time when the server calls the client? 回答1: The emit and on works exactly same on both sides: client and server. So if you emit to client-socket on server side, then if on client-side you are subscribed to that event, it will trigger it. And vice versa. What you are confused by is that server