Open Sg4Dylan opened 8 years ago
哦 需要别的东西。
看我的gists。
2016年1月5日星期二,Sg4Dylan notifications@github.com 写道:
如题。 最基本的能获取及发送弹幕即可。 感谢。
— Reply to this email directly or view it on GitHub https://github.com/Vespa314/bilibili-api/issues/10.
https://gist.github.com/cnbeining/6b2273d7e332f29193d0 这个么?只描述了连接WebSocket的操作
现在是xmlsocket。
连上了等着推。
2016年1月5日星期二,Sg4Dylan notifications@github.com 写道:
https://gist.github.com/cnbeining/6b2273d7e332f29193d0 这个么?只描述了连接WebSocket的操作
— Reply to this email directly or view it on GitHub https://github.com/Vespa314/bilibili-api/issues/10#issuecomment-169190620 .
能提供具体的代码参考么? Python C++ 都行( 感谢~
看看我代码的fork们。
2016年1月5日星期二,Sg4Dylan notifications@github.com 写道:
能提供具体的代码参考么? Python C++ 都行( 感谢~
— Reply to this email directly or view it on GitHub https://github.com/Vespa314/bilibili-api/issues/10#issuecomment-169191373 .
拿Python撸了个能连上了,不过因为B站的原因,即便有心跳存在也会偶发断线,接着socket.recv()就卡死线程了… 咱是单进程用threading创建两线程,一条处理心跳,一条处理recv()的。 菊苣有什么好方法处理么(迫切
完全不在乎 每秒检测 无限断线重连 反正不是我的服务器 我不care
菊苣用多线程么,Python单进程跑这个一断线就连着检测用的部分一起卡死了
不用啊。
Socket是不是断了很简单可以检测啊。。。
https://gist.github.com/Sg4Dylan/cdeaf8b2f73e726e350e 还有两个问题实在搞不定了(可怕
如题。 最基本的能获取及发送弹幕即可。 感谢。