(
id: number,
parseWebSocket: any,
hasMasterKey: boolean = false,
sessionToken: string,
installationId: string
)
| 24 | pushLeave: Function; |
| 25 | |
| 26 | constructor( |
| 27 | id: number, |
| 28 | parseWebSocket: any, |
| 29 | hasMasterKey: boolean = false, |
| 30 | sessionToken: string, |
| 31 | installationId: string |
| 32 | ) { |
| 33 | this.id = id; |
| 34 | this.parseWebSocket = parseWebSocket; |
| 35 | this.hasMasterKey = hasMasterKey; |
| 36 | this.sessionToken = sessionToken; |
| 37 | this.installationId = installationId; |
| 38 | this.roles = []; |
| 39 | this.subscriptionInfos = new Map(); |
| 40 | this.pushConnect = this._pushEvent('connected'); |
| 41 | this.pushSubscribe = this._pushEvent('subscribed'); |
| 42 | this.pushUnsubscribe = this._pushEvent('unsubscribed'); |
| 43 | this.pushCreate = this._pushEvent('create'); |
| 44 | this.pushEnter = this._pushEvent('enter'); |
| 45 | this.pushUpdate = this._pushEvent('update'); |
| 46 | this.pushDelete = this._pushEvent('delete'); |
| 47 | this.pushLeave = this._pushEvent('leave'); |
| 48 | } |
| 49 | |
| 50 | static pushResponse(parseWebSocket: any, message: Message): void { |
| 51 | logger.verbose('Push Response : %j', message); |
nothing calls this directly
no test coverage detected