Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

jsync_demo_db_only.js 1005B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. function jsyncdb_init_helper(){
  2. // clog("WS_HELPER")
  3. var fns = window.glob_u.ws.fns
  4. var room_name=glob_u.fns.get_room_name()
  5. var o = {
  6. include_participants_data:1,
  7. include_ws_channel_data:1, // required for participants_data to work
  8. // msto.participants and msto.ws_channels will be defined in either case so we don't need to handle cases where some users enable this and some don't
  9. AutoReconnect:false,
  10. // the following options attributes
  11. url:'wss://' + window.location.hostname +`/djc_srv/ws/chat/${room_name}`,
  12. socket_name:"ws1",
  13. ord:glob_u.cb.ws,
  14. methods:{
  15. onmessage:fns.onmessage,
  16. onclose:fns.onclose,
  17. onerror:fns.onerror,
  18. onopen:fns.onopen,
  19. },
  20. fns:{
  21. },
  22. }
  23. var socket = window.glob_u.fns.connect_ws(o)
  24. // clog({socket})
  25. }
  26. // window.dev_flag = 1
  27. function set_rldi_int(){
  28. window?.rldi?.setint?.(400)
  29. }
  30. addEventListener("load",set_rldi_int)
  31. jsyncdb_init_helper()
  32. // window?.rldi?.setint?.(400)
  33. // window.rldi.setint(400)
  34. // clog("????")