New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/socketcluster-server

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/socketcluster-server - npm Package Compare versions

Comparing version

to
14.2.0

2

socketcluster-server/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for socketcluster-server 13.1
// Type definitions for socketcluster-server 14.2
// Project: https://github.com/SocketCluster/socketcluster-server

@@ -3,0 +3,0 @@ // Definitions by: Daniel Rose <https://github.com/DanielRose>

{
"name": "@types/socketcluster-server",
"version": "13.1.1",
"version": "14.2.0",
"description": "TypeScript definitions for socketcluster-server",

@@ -27,4 +27,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "6e568a4d2c2426ed37aca3d7a24133627beffd601900735369475eb82a4c45d2",
"typesPublisherContentHash": "2c31ee027a632da7a2cb1d00c4428c3247ef3cd4bbdb97d4a83049cf0a10f59b",
"typeScriptVersion": "2.4"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Tue, 18 Dec 2018 20:56:19 GMT
* Last updated: Thu, 03 Jan 2019 17:14:56 GMT
* Dependencies: @types/jsonwebtoken, @types/sc-auth, @types/sc-broker-cluster, @types/ws, @types/component-emitter

@@ -14,0 +14,0 @@ * Global values: none

@@ -36,2 +36,9 @@ import { EventEmitter } from "events";

on(event: "connection", listener: SCServer.connectionListenerFunction): this;
on(event: "ready", listener: () => void): this;
on(event: "warning" | "error", listener: (error: Error) => void): this;
on(event: "disconnection" | "connectionAbort" | "closure", listener: SCServer.disconnectionListenerFunction): this;
on(event: "subscription", listener: SCServer.subscriptionListenerFunction): this;
on(event: "unsubscription", listener: SCServer.unsubscriptionListenerFunction): this;
on(event: "handshake", listener: SCServer.handshakeListenerFunction): this;
on(event: "badSocketAuthToken", listener: SCServer.badSocketAuthTokenListenerFunction): this;

@@ -87,3 +94,3 @@ addMiddleware(type: "handshakeWS", middlewareFn: (req: IncomingMessage, next: SCServer.nextMiddlewareFunction) => void): void;

// You can now set this to 'sc-uws' for a massive speedup of at least 2x!
wsEngine?: string;
wsEngine?: any;

@@ -310,2 +317,7 @@ // An ID to associate with this specific instance of SC

interface badAuthStatus {
authError: Error;
signedAuthToken: string;
}
type nextMiddlewareFunction = (error?: true | string | Error) => void;

@@ -315,2 +327,7 @@ type nextHandshakeSCMiddlewareFunction = (error?: true | string | Error | null, statusCode?: number) => void;

type connectionListenerFunction = (scSocket: SCServerSocket, serverSocketStatus: SCServerSocketStatus) => void;
type disconnectionListenerFunction = (scSocket: SCServerSocket, code: number, data: any) => void;
type subscriptionListenerFunction = (scSocket: SCServerSocket, name: string, options: {channel: string}) => void;
type unsubscriptionListenerFunction = (scSocket: SCServerSocket, channel: string) => void;
type handshakeListenerFunction = (scSocket: SCServerSocket) => void;
type badSocketAuthTokenListenerFunction = (scSocket: SCServerSocket, status: badAuthStatus) => void;

@@ -317,0 +334,0 @@ interface SCCodecEngine {