mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 18:10:47 -04:00
auuuhm
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
registerModule('globals/socket', (require, exports) => {
|
||||
const socket = io();
|
||||
const query = {};
|
||||
if (window.__desiredRole) {
|
||||
query.role = window.__desiredRole;
|
||||
}
|
||||
const socket = io(query.role ? { query } : undefined);
|
||||
exports.socket = socket;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user