Socket
Socket
Sign inDemoInstall

@geckos.io/common

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geckos.io/common - npm Package Compare versions

Comparing version 2.2.4 to 2.3.0

20

lib/types.d.ts

@@ -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

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