Added in definitions for the main socket events on the server.