@geckos.io/common
Advanced tools
Comparing version 1.6.0 to 1.6.1
import EventEmitter from 'eventemitter3'; | ||
import { Data, ChannelId, EventName, RoomId } from './types'; | ||
export declare class Bridge { | ||
eventEmitter: EventEmitter<string | symbol>; | ||
eventEmitter: EventEmitter<string | symbol, any>; | ||
emit(eventName: EventName, data?: Data, connection?: { | ||
@@ -10,3 +10,3 @@ senderId?: ChannelId; | ||
}): void; | ||
on(eventName: EventName, cb: Function): EventEmitter<string | symbol>; | ||
on(eventName: EventName, cb: Function): EventEmitter<string | symbol, any>; | ||
removeAllListeners(): void; | ||
@@ -13,0 +13,0 @@ } |
@@ -23,3 +23,3 @@ /// <reference types="node" /> | ||
autoManageBuffering?: boolean; | ||
authorization?: (header: string) => Promise<boolean | any>; | ||
authorization?: (header: string | undefined) => Promise<boolean | any>; | ||
} | ||
@@ -42,2 +42,3 @@ export interface ClientOptions { | ||
origin: string | CorsOptionsOriginFunction; | ||
allowAuthorization?: boolean; | ||
} | ||
@@ -44,0 +45,0 @@ export interface EventCallbackClient { |
{ | ||
"name": "@geckos.io/common", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "The common module for @geckos.io/server and @geckos.io/client.", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
22872
325