UNPKG

@pazznetwork/ngx-chat

Version:

[![Build status](https://api.travis-ci.com/pazznetwork/ngx-chat.svg?branch=master)](https://travis-ci.com/pazznetwork/ngx-chat) [![Coverage](https://coveralls.io/repos/github/pazznetwork/ngx-chat/badge.svg?branch=master)](https://coveralls.io/github/pazzn

32 lines (31 loc) 1.09 kB
import { XmppChatAdapter } from '../xmpp-chat-adapter.service'; import { AbstractXmppPlugin } from './abstract-xmpp-plugin'; export interface IdentityAttrs { category: string; type: string; name?: string; } export interface Service { jid: string; identitiesAttrs: IdentityAttrs[]; features: string[]; } /** * see XEP-0030 Service Discovery */ export declare class ServiceDiscoveryPlugin extends AbstractXmppPlugin { private readonly chatAdapter; static readonly DISCO_INFO = "http://jabber.org/protocol/disco#info"; static readonly DISCO_ITEMS = "http://jabber.org/protocol/disco#items"; private readonly servicesInitialized$; private hostedServices; private readonly resourceCache; constructor(chatAdapter: XmppChatAdapter); onBeforeOnline(): Promise<void>; onOffline(): void; supportsFeature(jid: string, searchedFeature: string): Promise<boolean>; findService(category: string, type: string): Promise<Service>; private discoverServices; private discoverServiceInformation; private isIdentitiesAttrs; }