If a BTP token is provided, we should just remove the existing connection from the WebSockets HashMap, since a new one will be created by the connect_to_external_services call.
I've added a timeout on the send_request call to not hang forever if the server closes the connection and leaves us with a broken websocket.
If a BTP token is provided, we should just remove the existing connection from the WebSockets HashMap, since a new one will be created by the
connect_to_external_services
call.I've added a timeout on the send_request call to not hang forever if the server closes the connection and leaves us with a broken websocket.
Closes https://github.com/interledger-rs/interledger-rs/issues/356