added sockets.emit test on connection.