adding ReconnectingWebSocket support