feat: channel add ext data

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-02-27 18:14:17 +08:00
parent 33d29271f9
commit 97877832c4
4 changed files with 14 additions and 7 deletions

View File

@ -5,7 +5,7 @@ export namespace channel {
* handle plugin message
* @param data byte[]
*/
export type ChannelListener = (data: any) => void
export type ChannelListener = (data: any, exts?: any) => void
@injectable()
export abstract class Channel {