mirror of https://git.kore.io/kore.git
the example uses tls by default, so use it.
This commit is contained in:
parent
bb9dbbec12
commit
8629419253
|
@ -37,7 +37,7 @@ function onmessage(evt) {
|
|||
}
|
||||
|
||||
function connect() {
|
||||
socket = new WebSocket("ws://127.0.0.1:8888/ws");
|
||||
socket = new WebSocket("wss://127.0.0.1:8888/ws");
|
||||
|
||||
socket.onopen = function(evt) { open(evt) };
|
||||
socket.onclose = function(evt) { alert("closed"); };
|
||||
|
|
Loading…
Reference in New Issue