Socket
Socket
Sign inDemoInstall

airfone-client-js

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airfone-client-js - npm Package Compare versions

Comparing version 0.0.19 to 0.0.20

26

lib/index.d.ts
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc