Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于关闭 TCP 连接 #8

Closed
tymon42 opened this issue Sep 26, 2022 · 1 comment
Closed

关于关闭 TCP 连接 #8

tymon42 opened this issue Sep 26, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@tymon42
Copy link
Contributor

tymon42 commented Sep 26, 2022

const live = new KeepLiveTCP(roomId)

如果需要断开 TCP/WS 连接,simon300000/bilibili-live-ws 提供了 live.close() 方法。
但是本项目中 live 并没有返回,是否有可能把 live 一并作为 startListen() 的返回值,以方便关闭连接?

@ddiu8081 ddiu8081 added the enhancement New feature or request label Sep 26, 2022
@ddiu8081
Copy link
Owner

v0.1.13 新增导出了 MessageListener 实例,包含close 在内的一些方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants