@@ -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/",
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user