添加客户端

This commit is contained in:
2025-04-06 13:50:16 +08:00
parent 4476be60b5
commit d5c9e663da
32 changed files with 4462 additions and 443 deletions

View File

@@ -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