7 lines
234 B
TypeScript
7 lines
234 B
TypeScript
export type Bytes = Uint8Array
|
|
export type OnMessage = (message : Bytes) => any
|
|
|
|
export interface RTMT{
|
|
sendMessage : (channel : string, message : Bytes) => any
|
|
listenMessage : (channel : string, callback : OnMessage) => any
|
|
} |