We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here you are calling connect on WebSocketChannel
connect
phoenix-socket-dart/lib/src/socket.dart
Line 193 in 70a437c
Map<String, String> headers
The text was updated successfully, but these errors were encountered:
Would you mind opening a PR? I'd be glad to review it.
Thank you!
Sorry, something went wrong.
Sure, will do in the following days
@mehrdad-shokri @Pacane
I think this solves your problem. This feature was added in this PR: #71
return PhoenixSocket( "ws://localhost:4000/socket", webSocketChannelFactory: (uri) { return IOWebSocketChannel.connect(uri, headers: { "token": "My Token"}); }, );
@matehat - I think this issue is resolved.
No branches or pull requests
Here you are calling
connect
on WebSocketChannelphoenix-socket-dart/lib/src/socket.dart
Line 193 in 70a437c
Please provide a
Map<String, String> headers
on the constructor of PhoenixSocket so we can pass our authentication cookies to the server.The text was updated successfully, but these errors were encountered: