rothiotome / godot-very-simple-twitch

Very Simple Twitch Chat integration for Godot
MIT License
36 stars 3 forks source link

Disconnect functionality #3

Open Laurick opened 4 months ago

Laurick commented 4 months ago

Why

Will be usefull get a disconect function for scenes/moments where you don't need waste resources in a node receiving messages. Maybe a disconect function in vsc is a good feature.

Now we can disconect removing the node and adding a new one. Its too shabby and only works on anon login

How

In a non auth flow we must send the close the websocket properly. Must be careful becuase on a auth flow you must free all the resources not only the websocket. The thing is, after login a channeld and logout we can lauch another login to the same channel or another one without problems. I don't see any LEAVE command or something like that but...

rothiotome commented 4 months ago

I think you are totally right. I'm assigning myself to the task and adding that functionallity in the next release