Skip to content

Commit

Permalink
Add publish_status and remove_status methods to WebSocketServer (#192)
Browse files Browse the repository at this point in the history
Relatively simple PR to add support for publishing status messages to
all connected clients, and removing them by list of ids.

[WS
Spec](https://github.com/foxglove/ws-protocol/blob/main/docs/spec.md#remove-status)

[Current Python
implementation](https://github.com/foxglove/ws-protocol/blob/main/python/src/foxglove_websocket/server/__init__.py#L457)

One thing I did here is treat status messages the same as log messages,
in that when the queue is full it will drop older messages from the data
plane queue.

---------

Co-authored-by: Greg Smith <gasmith@foxglove.dev>
  • Loading branch information
eloff and gasmith authored Feb 11, 2025
1 parent 2eb02ea commit edd6a82
Show file tree
Hide file tree
Showing 5 changed files with 670 additions and 73 deletions.
Loading

0 comments on commit edd6a82

Please sign in to comment.