emit messages and get response socket code example Example: socket emit to io.to(socketid).emit('message', 'whatever');