-
Notifications
You must be signed in to change notification settings - Fork 226
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
Allow establishing of websocket with web optional protocols parameter #107
Labels
Comments
Above example does not use optional parameter |
@jadedevin13 req.headers().get("sec-websocket-protocol").map(|sp| {
let headers = resp.headers_mut();
headers.append("sec-websocket-protocol", sp.clone());
}); |
Current state: #145 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cargo run --example server
Open web browser dev console.
Use ws and not secure wss, otherwise I get invalid token.
Run this:
Error:
Reference
https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket
The text was updated successfully, but these errors were encountered: