Moves websocket API so the delegates are borrowed. This allows the
parent to do things like, have a single unified struct implement
all the API delegate interfaces and share the same struct to each
API delegate. The delegate, for example, could own the WebSockets
struct and mutate members or even shutdown the websocket within a
callback from the websocket API.
Moves websocket API so the delegates are borrowed. This allows the parent to do things like, have a single unified struct implement all the API delegate interfaces and share the same struct to each API delegate. The delegate, for example, could own the WebSockets struct and mutate members or even shutdown the websocket within a callback from the websocket API.