Updating emit() calls to use the SocketServer facade method