I need to pass an object reference to a vue-component. The background behind this is the following:
I have a webapp, that uses vuejs only for the chat. However, the webapp already opens a WebSocket-connection to my server for data messaging. I would like to reuse this existing WebSocket-connection inside the vue-powered Chat, instead of opening another parallel connection. I was struggling for some time to pass the WebSocket object from my webapp to the vue-component.
I want to pass a reference to a fully dynamic WebSocket-connection, so props or state are no option.