Skip to content
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

[Feature] MSG_TYPES in stray_cat should be configurable #1001

Open
danieledav opened this issue Dec 30, 2024 · 1 comment
Open

[Feature] MSG_TYPES in stray_cat should be configurable #1001

danieledav opened this issue Dec 30, 2024 · 1 comment
Labels
endpoints Related to http / ws endpoints enhancement New feature or request

Comments

@danieledav
Copy link

Describe the solution you'd like
MSG_TYPES in stray_cat should be configurable to send custom message types on web socket.

Example:
GOAL: send internal messages to other systems components that the user should not read in chat
SOLUTION: filtering web socket payloads by message type

cat.send_ws_message("Internal message", msg_type="sys_message")

Additional context
Ref. line 23 of core/cat/looking_glass/stray_cat.py
MSG_TYPES = Literal["notification", "chat", "error", "chat_token"]

@danieledav danieledav added the enhancement New feature or request label Dec 30, 2024
@pieroit
Copy link
Member

pieroit commented Jan 3, 2025

Not a priority but a reasonable request; let's keep the issue open to see if more people manifest interest.
Thanks @danieledav

@pieroit pieroit added the endpoints Related to http / ws endpoints label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
endpoints Related to http / ws endpoints enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants