@@ -62,7 +62,7 @@ export class BaseWebSocket<T extends WebSocketMessage = WebSocketMessage> {
|
|||||||
public status: Ref<ConnectionStatus> = ref<ConnectionStatus>("disconnected")
|
public status: Ref<ConnectionStatus> = ref<ConnectionStatus>("disconnected")
|
||||||
|
|
||||||
constructor(config: WebSocketConfig) {
|
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.maxReconnectAttempts = config.maxReconnectAttempts ?? 5
|
||||||
this.reconnectDelay = config.reconnectDelay ?? 1000
|
this.reconnectDelay = config.reconnectDelay ?? 1000
|
||||||
@@ -305,7 +305,7 @@ export interface SubmissionUpdate extends WebSocketMessage {
|
|||||||
class SubmissionWebSocket extends BaseWebSocket<SubmissionUpdate> {
|
class SubmissionWebSocket extends BaseWebSocket<SubmissionUpdate> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super({
|
super({
|
||||||
path: "submission",
|
path: "/submission/",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user