You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice that a new websocket connection is created for each channel. I was just wondering if there's any technical / other reason for not reusing the websocket connection.
The text was updated successfully, but these errors were encountered:
The underlying websocket connection is managed for us by Phoenix Channels javascript client, so I'm not sure whether this would be viable or not, TBH. I haven't peeked under the covers in the phoenix code to see whether you could get to the websocket connection there or not, but feel free to have a go and submit a PR if something useful comes of it.
Hey sorry for slow reply, for some reason GH didn't notify me of your reply :( Anyways, I think letting the user pass in their own instance and creating one for them if they don't would be totally reasonable. That way you can pass one if you have one, if not LiveState will create it as before.
Hello there,
I notice that a new websocket connection is created for each channel. I was just wondering if there's any technical / other reason for not reusing the websocket connection.
The text was updated successfully, but these errors were encountered: