messages to sockets