@types/xmpp__connection-tcp
TypeScript icon, indicating that this package has built-in type declarations

0.13.3 • Public • Published

Installation

npm install --save @types/xmpp__connection-tcp

Summary

This package contains type definitions for @xmpp/connection-tcp (https://github.com/xmppjs/xmpp.js/tree/main/packages/connection-tcp).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmpp__connection-tcp.

index.d.ts

import Connection = require("@xmpp/connection");
import { Element } from "@xmpp/xml";
import { Socket } from "net";
import { URL } from "url";

export = ConnectionTCP;

declare class ConnectionTCP extends Connection {
    sendMany(elements: Iterable<Element>): Promise<void>;
    socketParameters(service: string | URL): ConnectionTCP.SocketParameters | undefined;
    headerElement(): Element;

    Socket: ConnectionTCP.SocketConstructor;
}

declare namespace ConnectionTCP {
    interface SocketParameters {
        port: number | null;
        host: string;
    }

    interface SocketConstructor extends Connection.SocketConstructor {
        new(): Socket;
    }
}

Additional Details

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/xmpp__connection-tcp

Weekly Downloads

60

Version

0.13.3

License

MIT

Unpacked Size

4.22 kB

Total Files

5

Last publish

Collaborators

  • types