Added socket and emitting functions for sending messages to server