mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
api remove payload from names.
This commit is contained in:
parent
c796a9e530
commit
b13c9696b1
@ -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…
Reference in New Issue
Block a user