-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web socket to get current active message? #239
Comments
The featured chat page does not communicate when a message has been removed; at least not with the dock or extension. Given how you can have multiple featured chat pages open, there isn't really a central state. The dock can track what the last message it featured was, and what messages were past featured. The extension can auto-feature all messages as well, as can the API, so there is no clear point of featured message state here. It's possible to listen to the websocket API, assuming the featured chat page is in server (wss) mode, in which case you can monitor what messages have been featured, and whether there was a message-clear event sent. (message = false, essentially). This won't account for if a message self-expires after a certain amount of time. Beyond that, something would need to be added to accomplish what you want. More clarification needs to be provided to ensure it works correctly. Is it the dock, extension, or featured page that you want to be the source of state truth? |
I reduced the occurrence of the closed web socket by setting a delay on the sending of the
However, I am still finding Do you have any ideas what is going on here? Why is the socket closed? I'm still trying to understand/learn the whole web socket thing with companion 🙈. |
Is there an option to get the current selected / shown message to be able to display a status "has active message" in a stream deck with the generic web socket plugin, for example?
Basically: similar to the web socket command
getQueueSize
is there something similar to display if there is an active message which one may want to clear?Thank you,
Chris
The text was updated successfully, but these errors were encountered: