提交 de8409c6 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

code clean

上级 38600830
......@@ -140,7 +140,7 @@ export class PadchatRpc extends EventEmitter {
const message: PadchatRpcRequest = {
userId: this.token,
msgId: payload.id as string,
msgId: payload.id,
apiName: payload.method,
param: encodedParam,
}
......@@ -172,7 +172,7 @@ export class PadchatRpc extends EventEmitter {
const payload: PadchatPayload = JSON.parse(data)
this.onSocket(payload)
} catch (e) {
log.warn('PadchatRpc', 'startJsonRpc() ws.on(message) exception: %s', e)
log.warn('PadchatRpc', 'initWebSocket() ws.on(message) exception: %s', e)
this.emit('error', e)
}
})
......
export interface PadchatRpcRequest {
userId: string,
msgId: string,
msgId: number | string,
apiName: string,
param: string[],
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册