airfone-client-js
Advanced tools
Comparing version 0.0.19 to 0.0.20
export declare type StatusEvent = 'connect' | 'disconnect' | 'online' | 'offline' | 'error'; | ||
export declare type MessageEvent = 'group' | 'role' | 'message' | 'broadcasts'; | ||
export declare class ClientOptions { | ||
readonly server?: string; | ||
readonly id: string; | ||
readonly role: string; | ||
readonly room: string; | ||
readonly token?: string; | ||
readonly source?: string; | ||
constructor(id: string, role: string, room: string, server?: string, token?: string, source?: string); | ||
readonly server?: String; | ||
readonly id: String; | ||
readonly role: String; | ||
readonly room: String; | ||
readonly token?: String; | ||
readonly source?: String; | ||
constructor(id: String, role: String, room: String, server?: String, token?: String, source?: String); | ||
static build({ id, role, room, server, token, source }: any): ClientOptions; | ||
@@ -34,4 +34,4 @@ } | ||
disconnect(): void; | ||
chat(id: string, payload: any, receive?: Handle): void; | ||
notice(role: string, payload: any): void; | ||
chat(id: String, payload: any, receive?: Handle): void; | ||
notice(role: String, payload: any): void; | ||
broadcast(payload: any): void; | ||
@@ -41,14 +41,14 @@ broadcasts(payload: any): void; | ||
onIf(bool: boolean, events: MessageEvent, handle: Handle): this; | ||
onIf(bool: boolean, events: string, handle: Handle): this; | ||
onIf(bool: boolean, events: String, handle: Handle): this; | ||
onIf(bool: boolean, events: Array<StatusEvent>, handle: Handle): this; | ||
onIf(bool: boolean, events: Array<MessageEvent>, handle: Handle): this; | ||
onIf(bool: boolean, events: Array<string>, handle: Handle): this; | ||
onIf(bool: boolean, events: Array<String>, handle: Handle): this; | ||
on(events: StatusEvent, handle: Handle): this; | ||
on(events: MessageEvent, handle: Handle): this; | ||
on(events: string, handle: Handle): this; | ||
on(events: String, handle: Handle): this; | ||
on(events: Array<StatusEvent>, handle: Handle): this; | ||
on(events: Array<MessageEvent>, handle: Handle): this; | ||
on(events: Array<string>, handle: Handle): this; | ||
on(events: Array<String>, handle: Handle): this; | ||
} | ||
export declare function getClient(options: ClientOptions): AirfoneClient; | ||
export {}; |
{ | ||
"name": "airfone-client-js", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package