Many WebSocket server implementations provide an event upon connection. Consider adding it. Note that there is no "native" connection event.