mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
添加客户端
This commit is contained in:
@@ -12,6 +12,7 @@ export default abstract class BaseDanmakuClient {
|
||||
'padding'
|
||||
|
||||
public abstract type: 'openlive' | 'direct'
|
||||
public abstract serverUrl: string
|
||||
|
||||
public eventsAsModel: {
|
||||
danmaku: ((arg1: EventModel, arg2?: any) => void)[]
|
||||
@@ -118,6 +119,7 @@ export default abstract class BaseDanmakuClient {
|
||||
this.client.close()
|
||||
this.client = null
|
||||
}
|
||||
this.serverUrl = chatClient.connection.ws.ws.url
|
||||
return {
|
||||
success: !isError,
|
||||
message: errorMsg
|
||||
|
||||
Reference in New Issue
Block a user