mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-24 03:40:52 +01:00
7 lines
223 B
JavaScript
7 lines
223 B
JavaScript
|
import Socket from '@/lib/Socket';
|
||
|
|
||
|
export default new Socket(() => {
|
||
|
const protocol = document.location.protocol === 'https:' ? 'wss' : 'ws';
|
||
|
return new WebSocket(`${protocol}://${document.location.host}/api/ws`);
|
||
|
});
|