mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add room.control.request.
This commit is contained in:
parent
06955aa2f9
commit
86095ecdb1
@ -37,6 +37,7 @@ export interface NekoEvents {
|
|||||||
|
|
||||||
// room events
|
// room events
|
||||||
['room.control.host']: (hasHost: boolean, hostID: string | undefined, id: string) => void
|
['room.control.host']: (hasHost: boolean, hostID: string | undefined, id: string) => void
|
||||||
|
['room.control.request']: (id: string) => void
|
||||||
['room.screen.updated']: (width: number, height: number, rate: number, id: string) => void
|
['room.screen.updated']: (width: number, height: number, rate: number, id: string) => void
|
||||||
['room.settings.updated']: (settings: Settings, id: string) => void
|
['room.settings.updated']: (settings: Settings, id: string) => void
|
||||||
['room.clipboard.updated']: (text: string) => void
|
['room.clipboard.updated']: (text: string) => void
|
||||||
@ -263,6 +264,11 @@ export class NekoMessages extends EventEmitter<NekoEvents> {
|
|||||||
// Control Events
|
// Control Events
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
|
|
||||||
|
protected [EVENT.CONTROL_REQUEST]({ id }: message.SessionID) {
|
||||||
|
this._localLog.debug(`EVENT.CONTROL_REQUEST`)
|
||||||
|
this.emit('room.control.request', id)
|
||||||
|
}
|
||||||
|
|
||||||
protected [EVENT.CONTROL_HOST]({ has_host, host_id, id }: message.ControlHost) {
|
protected [EVENT.CONTROL_HOST]({ has_host, host_id, id }: message.ControlHost) {
|
||||||
this._localLog.debug(`EVENT.CONTROL_HOST`)
|
this._localLog.debug(`EVENT.CONTROL_HOST`)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user