mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-06 10:20:26 +02:00
api remove payload from names.
This commit is contained in:
parent
c796a9e530
commit
b13c9696b1
1 changed files with 5 additions and 6 deletions
|
@ -222,8 +222,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public setClipboardData(text: string) {
|
public setClipboardData(text: string) {
|
||||||
const clipboardPayload = { text }
|
const clipboardData = { text }
|
||||||
this.api.room.clipboardWrite({ clipboardPayload })
|
this.api.room.clipboardWrite({ clipboardData })
|
||||||
}
|
}
|
||||||
|
|
||||||
public requestControl() {
|
public requestControl() {
|
||||||
|
@ -238,9 +238,8 @@
|
||||||
this.api.room.controlTake()
|
this.api.room.controlTake()
|
||||||
}
|
}
|
||||||
|
|
||||||
public giveControl(id: string) {
|
public giveControl(memberId: string) {
|
||||||
const controlTargetPayload = { id }
|
this.api.room.controlGive({ memberId })
|
||||||
this.api.room.controlGive({ controlTargetPayload })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public resetControl() {
|
public resetControl() {
|
||||||
|
@ -248,7 +247,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public setScreenSize(width: number, height: number, rate: number) {
|
public setScreenSize(width: number, height: number, rate: number) {
|
||||||
//this.api.room.screenConfigurationChange({ screenConfigurationPayload: { width, height, rate } })
|
//this.api.room.screenConfigurationChange({ screenConfiguration: { width, height, rate } })
|
||||||
this.websocket.send('screen/set', { width, height, rate })
|
this.websocket.send('screen/set', { width, height, rate })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue