mancala/src/rtmt/rtmt.ts

7 lines
272 B
TypeScript
Raw Normal View History

2021-06-27 19:28:09 +03:00
export type Bytes = UInt8Array
export type OnMessage = (clientID : string, message : Bytes) => any
export interface RTMT{
sendMessage : (clientID : string, channel : string, message : Bytes) => any
listenMessage : (channel : string, callback : OnMessage) => any
}