Skip to content

Websockets API: Configuration settings or callbacks to force WSS #19072

Closed Answered by sbc100
actbinary asked this question in Q&A
Discussion options

You must be logged in to vote

Isn't this what the WEBSOCKET_URL setting is for?

emscripten/src/settings.js

Lines 367 to 373 in 055c6e8

// A string containing either a WebSocket URL prefix (ws:// or wss://) or a complete
// RFC 6455 URL - "ws[s]:" "//" host [ ":" port ] path [ "?" query ].
// In the (default) case of only a prefix being specified the URL will be constructed from
// prefix + addr + ':' + port
// where addr and port are derived from the socket connect/bind/accept calls.
// [link]
var WEBSOCKET_URL = 'ws://';

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@actbinary
Comment options

@sbc100
Comment options

Answer selected by actbinary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants