Skip to content

feat!: unify code with package:web_socket#435

Open
mertalev wants to merge 3 commits intorikulo:masterfrom
mertalev:feat/web_socket
Open

feat!: unify code with package:web_socket#435
mertalev wants to merge 3 commits intorikulo:masterfrom
mertalev:feat/web_socket

Conversation

@mertalev
Copy link
Copy Markdown

@mertalev mertalev commented Feb 5, 2026

Description

This PR migrates platform-specific websocket code to the modern package:web_socket WebSocket interface, which has implementations in cupertino_http, ok_http and can be extended with custom implementations. This means users can use and configure their own HTTP client without dedicated adapters in this library. As part of this, it replaces setHttpClientAdapter with setWebSocketConnector and removes HttpClientAdapter. This is a breaking change, but one I believe is worthwhile considering the consolidation and extensibility it offers.

I've added tests and done some testing of this branch in my app with cupertino_http and ok_http to confirm it works as expected.

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