We need to be able to feed API request responses back to our application. This is a little bit of a hassle when dealing with WebSockets since requests return responses through the
socket.onmessage method. It's very possible to do though with a little massaging.
Let's set up some state variables on our Socket Service.