@fnlb-project/stanza
Version:
Modern XMPP in the browser, with a JSON API
25 lines (24 loc) • 505 B
TypeScript
import { DefinitionOptions } from '../jxt';
declare module './' {
interface Message {
ibb?: IBBData;
}
interface IQPayload {
ibb?: IBB;
}
}
export interface IBBRequest {
action: 'open' | 'close';
sid: string;
blockSize?: number;
ack?: boolean;
}
export interface IBBData {
action: 'data';
sid: string;
seq: number;
data: Buffer;
}
export type IBB = IBBRequest | IBBData;
declare const Protocol: DefinitionOptions[];
export default Protocol;