mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
okay, ws AND polling...
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -11,7 +11,7 @@
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" />
|
||||
<title>Multi Roomba Rover</title>
|
||||
<script type="module" crossorigin src="/assets/index-AeyAJWtj.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-B0-kB7Z4.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-B1UrCI1T.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -4,7 +4,7 @@ const configured = import.meta.env.VITE_ROVERD_URL?.trim();
|
||||
const resolvedUrl = configured && configured.length > 0 ? configured : window.location.origin;
|
||||
console.info('[socket] connecting to', resolvedUrl);
|
||||
export const socket = io(resolvedUrl, {
|
||||
transports: ['websocket'],
|
||||
transports: ['websocket', 'polling'],
|
||||
timeout: 15000,
|
||||
});
|
||||
socket.on('connect_error', (err) => console.error('connect_error', err.code, err.message, err.data));
|
||||
|
||||
Reference in New Issue
Block a user