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

Add "receiveWSMessage" and "sendWSMessage" to EventType type definition #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mjoblin
Copy link

@mjoblin mjoblin commented Mar 12, 2024

See #38

Description of Changes

Added "receiveWSMessage" and "sendWSMessage" to the EventType type definition.

This PR assumes that these two event types (which are already being emitted) are intended to be part of the public API. My current use case is to capture the size of the incoming and outgoing WebSocket message data to track the transfer rate up/down.

(This is a code-only change. Tests still pass, and I didn't see any existing tests for this level of event emitting so I didn't add any. Please let me know if I missed something there!)

API

N/A.

Requires SpacetimeDB PRs

N/A.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant