Releases: flxxyz/douyudm
Releases · flxxyz/douyudm
v1.3.0-beta.0
18 Jun 12:58
Compare
Sorry, something went wrong.
No results found
v1.2.0-beta.0
15 Jun 13:06
Compare
Sorry, something went wrong.
No results found
new: #14 更准确的序列化
new: 添加 frank 事件
fix: escape 与 unescape 传入 undefined 无法调用.toString()
v1.1.2-beta.5
13 Jun 14:51
Compare
Sorry, something went wrong.
No results found
fix: #11 异步处理消息会导致消息丢失,现采用callback模式处理
一些调试信息删除,更新README.md
v1.1.2-beta.3
12 May 18:30
Compare
Sorry, something went wrong.
No results found
日志扩展可导出方法
const danmaku = require ( 'douyudm' )
const logger = danmaku . logger
const dbname = 'some name'
//初始化日志
logger . init ( dbname )
//写入日志
logger . echo ( 123 )
logger . echo ( true )
logger . echo ( '这是一段文本' )
logger . echo ( [ 1 , 2 , 3 ] )
logger . echo ( { a : 1 , b : 2 } )
//导出日志,返回值为日志文本,web还另外弹出下载框以供下载
const text = logger . export ( )
v1.1.0
10 May 19:13
Compare
Sorry, something went wrong.
No results found
新增加调试模式,支持所有消息输出到文件保存
起因: #6 #5 #2
命令行
API
const douyu = require('douyudm')
const roomId = 房间号
const client = new douyu(roomId, {
debug: true,
})
日志保存路径
默认保存至当前运行的目录下,以 房间号.log 的形式存放
const client = new douyu(roomId, {
debug: true,
logfile: '日志存放的完整路径,包含文件名',
})
v1.0.3
07 Feb 17:40
Compare
Sorry, something went wrong.
No results found
v1.0.2
07 Feb 17:04
Compare
Sorry, something went wrong.
No results found
v1.0.1
07 Feb 16:55
Compare
Sorry, something went wrong.
No results found
v1.0.0
07 Feb 16:54
Compare
Sorry, something went wrong.
No results found
v0.0.1
03 Feb 07:24
Compare
Sorry, something went wrong.
No results found