Ver código fonte

deleted unused and fixed the url in *db_only

master
jfinn 1 ano atrás
pai
commit
e1bcadf3c2

+ 5
- 0
js_client/jsync_demo_db_only.js Ver arquivo

@@ -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
 

+ 0
- 2
js_client/shared_libs/jquery-3.5.1.min.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


Carregando…
Cancelar
Salvar