|
@@ -11,6 +11,10 @@ function jsyncdb_init_helper(){
|
11
|
11
|
// clog("WS_HELPER")
|
12
|
12
|
var fns = window.glob_u.ws.fns
|
13
|
13
|
var room_name=glob_u.fns.get_room_name()
|
|
14
|
+
|
|
15
|
+ let ws_protocol = "wss:"
|
|
16
|
+ location.protocol == "https:" ? "was already set to wss:" : ws_protocol = "ws:"
|
|
17
|
+
|
14
|
18
|
var o = {
|
15
|
19
|
|
16
|
20
|
include_participants_data:1,
|
|
@@ -23,6 +27,7 @@ function jsyncdb_init_helper(){
|
23
|
27
|
|
24
|
28
|
|
25
|
29
|
url:'wss://' + window.location.hostname +`/djc_srv/ws/chat/${room_name}`,
|
|
30
|
+ url: `${ws_protocol}//${location.hostname}:5000/echo_c1${location.search}`,
|
26
|
31
|
socket_name:"ws1",
|
27
|
32
|
ord:glob_u.cb.ws,
|
28
|
33
|
|