Add support for websocket reconnect and sending BYE to apprtc