Archived
2
0

progress on server refactor

This commit is contained in:
Craig
2020-01-20 16:22:24 +00:00
parent 78af798d68
commit d497806443
13 changed files with 436 additions and 51 deletions

View File

@ -6,42 +6,74 @@ type Message struct {
Event string `json:"event"`
}
type Disconnect struct {
Event string `json:"event"`
Message string `json:"message"`
}
type Identity struct {
Message
ID string `json:"id"`
Event string `json:"event"`
ID string `json:"id"`
}
type IdentityDetails struct {
Message
Event string `json:"event"`
Username string `json:"username"`
}
type Signal struct {
Message
SDP string `json:"sdp"`
Event string `json:"event"`
SDP string `json:"sdp"`
}
type Members struct {
Message
type MembersList struct {
Event string `json:"event"`
Memebers []*session.Session `json:"members"`
}
type Member struct {
Message
Event string `json:"event"`
*session.Session
}
type MemberDisconnected struct {
Message
ID string `json:"id"`
Event string `json:"event"`
ID string `json:"id"`
}
type Control struct {
Message
ID string `json:"id"`
Event string `json:"event"`
ID string `json:"id"`
}
type Chat struct {
Message
type ChatRecieve struct {
Event string `json:"event"`
Content string `json:"content"`
}
type ChatSend struct {
Event string `json:"event"`
ID string `json:"id"`
Content string `json:"content"`
}
type EmojiRecieve struct {
Event string `json:"event"`
Emoji string `json:"emoji"`
}
type EmojiSend struct {
Event string `json:"event"`
ID string `json:"id"`
Emoji string `json:"emoji"`
}
type Admin struct {
Event string `json:"event"`
ID string `json:"id"`
}
type AdminSubject struct {
Event string `json:"event"`
Subject string `json:"subject"`
ID string `json:"id"`
}