mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
update control WS.
This commit is contained in:
@ -19,10 +19,7 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
CONTROL_LOCKED = "control/locked" // TODO: Remove.
|
||||
CONTROL_REQUESTING = "control/requesting" // TODO: Remove.
|
||||
CONTROL_GIVE = "control/give" // TODO: Remove.
|
||||
CONTROL_HOST = "control/host" // TODO: New.
|
||||
CONTROL_HOST = "control/host"
|
||||
CONTROL_RELEASE = "control/release"
|
||||
CONTROL_REQUEST = "control/request"
|
||||
CONTROL_MOVE = "control/move" // TODO: New. (fallback)
|
||||
|
@ -52,7 +52,6 @@ type MemberData struct {
|
||||
}
|
||||
|
||||
// Control
|
||||
// TODO: New.
|
||||
type ControlHost struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
HasHost bool `json:"has_host"`
|
||||
@ -144,16 +143,3 @@ type MemberDisconnected struct {
|
||||
Event string `json:"event"`
|
||||
ID string `json:"id"`
|
||||
}
|
||||
|
||||
// TODO: Remove.
|
||||
type Control struct {
|
||||
Event string `json:"event"`
|
||||
ID string `json:"id"`
|
||||
}
|
||||
|
||||
// TODO: Remove.
|
||||
type ControlTarget struct {
|
||||
Event string `json:"event"`
|
||||
ID string `json:"id"`
|
||||
Target string `json:"target"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user