feat: Enhance win effects and animations in OfflineView component
This commit is contained in:
@@ -172,6 +172,9 @@ function setupSocketHandlers(socket: WebSocket) {
|
||||
}
|
||||
|
||||
export function connectWebSocket(url?: string): Promise<void> {
|
||||
if (!url) {
|
||||
url = window.__RUNTIME_CONFIG__?.WEBSOCKET_URL
|
||||
}
|
||||
if (!url) {
|
||||
const loc = window.location;
|
||||
const protocol = loc.protocol === "https:" ? "wss:" : "ws:";
|
||||
|
||||
Reference in New Issue
Block a user