@@ -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_UR}/${config.path}/`
|
this.url = `${import.meta.env.PUBLIC_WS_URL}/${config.path}/`
|
||||||
|
|
||||||
this.maxReconnectAttempts = config.maxReconnectAttempts ?? 5
|
this.maxReconnectAttempts = config.maxReconnectAttempts ?? 5
|
||||||
this.reconnectDelay = config.reconnectDelay ?? 1000
|
this.reconnectDelay = config.reconnectDelay ?? 1000
|
||||||
|
|||||||
Reference in New Issue
Block a user