Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
add room.control.request.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k1o committed May 10, 2024
1 parent 06955aa commit 86095ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/component/internal/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export interface NekoEvents {

// room events
['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.settings.updated']: (settings: Settings, id: string) => void
['room.clipboard.updated']: (text: string) => void
Expand Down Expand Up @@ -263,6 +264,11 @@ export class NekoMessages extends EventEmitter<NekoEvents> {
// 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) {
this._localLog.debug(`EVENT.CONTROL_HOST`)

Expand Down

0 comments on commit 86095ec

Please sign in to comment.