Comparing version 1.0.15 to 1.0.16
@@ -17,3 +17,5 @@ export declare enum SocketEventNames { | ||
/** Emits when user connect to room */ | ||
USER_CONNECT = "user-connect" | ||
USER_CONNECT = "user-connect", | ||
/** Emits when user disconnect from room */ | ||
USER_DISCONNECT = "user-disconnect" | ||
} |
@@ -22,2 +22,4 @@ "use strict"; | ||
SocketEventNames["USER_CONNECT"] = "user-connect"; | ||
/** Emits when user disconnect from room */ | ||
SocketEventNames["USER_DISCONNECT"] = "user-disconnect"; | ||
})(SocketEventNames = exports.SocketEventNames || (exports.SocketEventNames = {})); |
@@ -28,4 +28,7 @@ import { IClearCanvasCommand, IMouseMoveCommand } from '../commands'; | ||
} | ||
export interface IUpdateRoomsMessage extends Omit<ISocketMessage, 'userId'> { | ||
rooms: string[]; | ||
export interface IUserDisconnectMessage extends ISocketMessage { | ||
roomId: string; | ||
} | ||
export interface IUpdateRoomsMessage extends Omit<ISocketMessage, 'user'> { | ||
roomIds: string[]; | ||
} |
{ | ||
"name": "cb-types", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
11608
282