You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to provide headers to an HtmlWebSocketChannel? Right now it seems that only url and protocols are available right now.
I'm assuming this is because dart:html WebSocket doesn't allow you to do that, and I think flutter/flutter#39998 is the right place to ask about this, but is there some other thing that I'm missing?
The text was updated successfully, but these errors were encountered:
It seems HTTP headers cannot be reliably depended upon (browser specific). So the only reliable option seems to be to establish a websocket connection and then exchange auth information in a handshake phase, before accepting any further packets.
Is there any way to provide
headers
to anHtmlWebSocketChannel
? Right now it seems that onlyurl
andprotocols
are available right now.I'm assuming this is because
dart:html
WebSocket doesn't allow you to do that, and I think flutter/flutter#39998 is the right place to ask about this, but is there some other thing that I'm missing?The text was updated successfully, but these errors were encountered: