UNPKG

@jsxc/jsxc

Version:

Real-time XMPP chat application with video calls, file transfer and encrypted communication

15 lines (12 loc) 452 B
import { IConnection } from '@connection/Connection.interface'; import Account from '@src/Account'; type Send = (stanzaElement: Element | Strophe.Builder) => void; type SendIQ = (stanzaElement: Element | Strophe.Builder) => Promise<Element>; export default abstract class AbstractService { constructor( protected send: Send, protected sendIQ: SendIQ, protected connection: IConnection, protected account: Account ) {} }