guard
This commit is contained in:
parent
64cc748a9c
commit
5ea41244c1
1 changed files with 2 additions and 0 deletions
|
|
@ -108,6 +108,8 @@ export const useStreamingStore = defineStore('streaming', {
|
|||
}
|
||||
},
|
||||
initSocket(initial) {
|
||||
if (this.socket) throw new Error('Socket already exists!')
|
||||
|
||||
this.state = initial
|
||||
? WSConnectionStatus.STARTING_INITIAL
|
||||
: WSConnectionStatus.STARTING
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue