提交 8a89e5f3 authored 作者: José Luis Millán's avatar José Luis Millán

[Paylaod]Channel: fix data event argument type

上级 a20c7a21
...@@ -64,7 +64,7 @@ export class Channel extends EnhancedEventEmitter ...@@ -64,7 +64,7 @@ export class Channel extends EnhancedEventEmitter
this._consumerSocket = consumerSocket as Duplex; this._consumerSocket = consumerSocket as Duplex;
// Read Channel responses/notifications from the worker. // Read Channel responses/notifications from the worker.
this._consumerSocket.on('data', (buffer) => this._consumerSocket.on('data', (buffer: Buffer) =>
{ {
if (!this._recvBuffer) if (!this._recvBuffer)
{ {
......
...@@ -49,7 +49,7 @@ export class PayloadChannel extends EnhancedEventEmitter ...@@ -49,7 +49,7 @@ export class PayloadChannel extends EnhancedEventEmitter
this._consumerSocket = consumerSocket as Duplex; this._consumerSocket = consumerSocket as Duplex;
// Read PayloadChannel notifications from the worker. // Read PayloadChannel notifications from the worker.
this._consumerSocket.on('data', (buffer) => this._consumerSocket.on('data', (buffer: Buffer) =>
{ {
if (!this._recvBuffer) if (!this._recvBuffer)
{ {
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论