mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add MemberId to init.
This commit is contained in:
parent
2c7291324c
commit
b194f8034a
@ -11,6 +11,7 @@ type Message struct {
|
|||||||
|
|
||||||
type SystemInit struct {
|
type SystemInit struct {
|
||||||
Event string `json:"event,omitempty"`
|
Event string `json:"event,omitempty"`
|
||||||
|
MemberId string `json:"member_id"`
|
||||||
ControlHost ControlHost `json:"control_host"`
|
ControlHost ControlHost `json:"control_host"`
|
||||||
ScreenSize ScreenSize `json:"screen_size"`
|
ScreenSize ScreenSize `json:"screen_size"`
|
||||||
Members []MemberData `json:"members"`
|
Members []MemberData `json:"members"`
|
||||||
|
@ -35,6 +35,7 @@ func (h *MessageHandlerCtx) systemInit(session types.Session) error {
|
|||||||
return session.Send(
|
return session.Send(
|
||||||
message.SystemInit{
|
message.SystemInit{
|
||||||
Event: event.SYSTEM_INIT,
|
Event: event.SYSTEM_INIT,
|
||||||
|
MemberId: session.ID(),
|
||||||
ControlHost: controlHost,
|
ControlHost: controlHost,
|
||||||
Members: members,
|
Members: members,
|
||||||
ScreenSize: message.ScreenSize{
|
ScreenSize: message.ScreenSize{
|
||||||
|
Loading…
Reference in New Issue
Block a user