Add a method for returning the socket connection to the server, allowing easy access for sending custom events