|
@@ -216,7 +216,7 @@
|
|
|
const query = { client_id: "{{ client_id }}" };
|
|
|
const url = window.location.protocol === 'https:' ? 'wss://' : 'ws://' + window.location.host;
|
|
|
const extraHeaders = {{ socket_io_js_extra_headers | safe }};
|
|
|
- const transports = ['websocket', 'polling'];
|
|
|
+ const transports = {{ socket_io_js_transports | safe }};
|
|
|
window.path_prefix = "{{ prefix | safe }}";
|
|
|
window.socket = io(url, { path: "{{ prefix | safe }}/_nicegui_ws/socket.io", query, extraHeaders, transports });
|
|
|
const messageHandlers = {
|