fix
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2025-10-07 21:31:41 +08:00
parent 7938e02421
commit fa5cd00ab4

View File

@@ -62,7 +62,7 @@ export class BaseWebSocket<T extends WebSocketMessage = WebSocketMessage> {
public status: Ref<ConnectionStatus> = ref<ConnectionStatus>("disconnected")
constructor(config: WebSocketConfig) {
this.url = import.meta.env.PUBLIC_WS_URL
this.url = `${import.meta.env.PUBLIC_WS_UR}/${config.path}/`
this.maxReconnectAttempts = config.maxReconnectAttempts ?? 5
this.reconnectDelay = config.reconnectDelay ?? 1000
@@ -305,7 +305,7 @@ export interface SubmissionUpdate extends WebSocketMessage {
class SubmissionWebSocket extends BaseWebSocket<SubmissionUpdate> {
constructor() {
super({
path: "submission",
path: "/submission/",
})
}