endpoints
endpoints copied to clipboard
Is there a way to have Websocket use Call instead of Connection?
I'm wondering if we can merge Connection and Call together, so Connection would extend our base call.Call
?
The reason why I was thinking about this is because I added a CloseConnection (see #105) exception and I had to put support for it in the base Call, otherwise it wouldn't bubble up. But the functionality is basically undefined for any other type of request that isn't a websocket request, which isn't great.