pusher-js
Version:
Pusher Channels JavaScript library for browsers, React Native, NodeJS and web workers
45 lines (40 loc) • 1.31 kB
text/typescript
import ConnectionManager from './connection/connection_manager';
import {
ChannelAuthorizationOptions,
UserAuthenticationOptions
} from './auth/options';
import {
ChannelAuthorizerGenerator,
DeprecatedAuthOptions
} from './auth/deprecated_channel_authorizer';
import { AuthTransport, Transport } from './config';
import * as nacl from 'tweetnacl';
export interface Options {
activityTimeout?: number;
auth?: DeprecatedAuthOptions; // DEPRECATED use channelAuthorization instead
authEndpoint?: string; // DEPRECATED use channelAuthorization instead
authTransport?: AuthTransport; // DEPRECATED use channelAuthorization instead
authorizer?: ChannelAuthorizerGenerator; // DEPRECATED use channelAuthorization instead
channelAuthorization?: ChannelAuthorizationOptions;
userAuthentication?: UserAuthenticationOptions;
cluster?: string;
enableStats?: boolean;
disableStats?: boolean;
disabledTransports?: Transport[];
enabledTransports?: Transport[];
forceTLS?: boolean;
httpHost?: string;
httpPath?: string;
httpPort?: number;
httpsPort?: number;
ignoreNullOrigin?: boolean;
nacl?: nacl;
pongTimeout?: number;
statsHost?: string;
timelineParams?: any;
unavailableTimeout?: number;
wsHost?: string;
wsPath?: string;
wsPort?: number;
wssPort?: number;
}