Added an example for the client. Server one coming soon. Also added onSocketClose event to server.