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 0b416adfd2
commit e7d44af48c
5 changed files with 40 additions and 41 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 {