mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-23 19:31:03 +01:00
9 lines
195 B
JavaScript
9 lines
195 B
JavaScript
import Socket from '@/lib/Socket';
|
|
|
|
const socket = new Socket(() => {
|
|
const baseURI = `ws${document.baseURI.substr(4)}`;
|
|
return new WebSocket(`${baseURI}api/ws`);
|
|
});
|
|
|
|
export default socket;
|