mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
fix: review
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for socketcluster-server 13.1
|
||||
// Type definitions for socketcluster-server 14.2
|
||||
// Project: https://github.com/SocketCluster/socketcluster-server
|
||||
// Definitions by: Daniel Rose <https://github.com/DanielRose>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
+2
-2
@@ -34,7 +34,7 @@ declare class SCServer extends EventEmitter {
|
||||
|
||||
on(event: "connection", listener: SCServer.connectionListenerFunction): this;
|
||||
on(event: "ready", listener: () => void): this;
|
||||
on(event: "error", listener: (error: Error) => 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;
|
||||
@@ -323,7 +323,7 @@ declare namespace SCServer {
|
||||
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, name: string, channel: string) => void;
|
||||
type unsubscriptionListenerFunction = (scSocket: SCServerSocket, channel: string) => void;
|
||||
type handshakeListenerFunction = (scSocket: SCServerSocket) => void;
|
||||
type badSocketAuthTokenListenerFunction = (scSocket: SCServerSocket, status: badAuthStatus) => void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user