@geckos.io/common
Advanced tools
Comparing version 2.2.4 to 2.3.0
@@ -5,11 +5,11 @@ /// <reference types="node" /> | ||
export { ArrayBufferView }; | ||
export type ChannelId = string | undefined; | ||
export type Data = string | number | Object; | ||
export type EventName = string; | ||
export type Payload = { | ||
export declare type ChannelId = string | undefined; | ||
export declare type Data = string | number | Object; | ||
export declare type EventName = string; | ||
export declare type Payload = { | ||
[eventName: string]: Data; | ||
}; | ||
export type RawMessage = USVString | ArrayBuffer | ArrayBufferView; | ||
export type RoomId = ChannelId; | ||
export type USVString = string; | ||
export declare type RawMessage = USVString | ArrayBuffer | ArrayBufferView; | ||
export declare type RoomId = ChannelId; | ||
export declare type USVString = string; | ||
/** The geckos.io server options. */ | ||
@@ -42,3 +42,3 @@ export interface ServerOptions { | ||
portRange?: { | ||
/** Minimum port range (defaults to 0) */ | ||
/** Minimum port range (defaults to 1025) */ | ||
min: number; | ||
@@ -48,2 +48,4 @@ /** Minimum port range (defaults to 65535) */ | ||
}; | ||
/** When true (default), the first available port in the port range will be used for all connections, instead of assigning a new port for each connection. */ | ||
multiplex?: boolean; | ||
} | ||
@@ -63,3 +65,3 @@ export interface ClientOptions { | ||
} | ||
type CorsOptionsOriginFunction = (req: IncomingMessage) => string; | ||
declare type CorsOptionsOriginFunction = (req: IncomingMessage) => string; | ||
/** The CORS options. */ | ||
@@ -66,0 +68,0 @@ export interface CorsOptions { |
{ | ||
"name": "@geckos.io/common", | ||
"version": "2.2.4", | ||
"version": "2.3.0", | ||
"description": "The common module for @geckos.io/server and @geckos.io/client.", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
@@ -0,0 +0,0 @@ # @geckos.io/common |
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
29339
381