Fix pushing from onOpen/onReopen with WebSockets (#48)

The webSocketOpened flag must be set before invoking _open(),
otherwise _pushWebSocket fails.