We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4258b65 commit ecc77ecCopy full SHA for ecc77ec
deps/rabbitmq_web_stomp_examples/priv/echo.html
@@ -79,7 +79,8 @@ <h2>Logs</h2>
79
};
80
81
// Stomp.js boilerplate
82
- var client = Stomp.client('ws://' + window.location.hostname + ':15674/ws');
+ const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
83
+ var client = Stomp.client(wsProtocol + '//' + window.location.hostname + ':15674/ws');
84
client.debug = pipe('#second');
85
86
var print_first = pipe('#first', function(data) {
0 commit comments