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 Realtime tests by abstracting realtime websockets #673

Merged
merged 16 commits into from
Jul 30, 2024

Conversation

jan-tennert
Copy link
Collaborator

@jan-tennert jan-tennert commented Jul 28, 2024

What kind of change does this PR introduce?

Tests

What is the current behavior?

There are no realtime tests.

What is the new behavior?

I followed up on #658; creating realtime websocket tests, but instead of using ktor's server-host, I separated Ktor's websockets from realtime-kt. This is done by adding a new config property RealtimeWebsocketFactory which creates a RealtimeWebsocket, so you can provide your own RealtimeWebsocketFactory. By default, this is a KtorRealtimeWebsocketFactory. For the tests a Channel is used for communication.

This PR also adds support for broadcasting to private channels via the API.

Additional context

Add any other context or screenshots.

@jan-tennert jan-tennert marked this pull request as draft July 28, 2024 17:22
@jan-tennert jan-tennert marked this pull request as ready for review July 29, 2024 17:48
@jan-tennert jan-tennert changed the base branch from master to r2.6.0 July 30, 2024 09:12
@jan-tennert jan-tennert merged commit eba8ebb into r2.6.0 Jul 30, 2024
12 checks passed
@jan-tennert jan-tennert deleted the realtime-tests-abstract branch August 1, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant