How would one send a message out to a single socket using socket.io.
I was thinking something like this but it doesn't work.
io.sockets.socket(socket.id).emit('messagetype', "message")
I get this error:
TypeError: Property 'connected' of object #<Namespace> is not a function
I think I'm just having an issue with syntax but can't find a source about it.
socket.id, why not just dosocket.emit('messagetype', "message")?