Started doing client-side routing, added some rewriting on the server to support it
This commit is contained in:
parent
eec82a7dd9
commit
0b8e97b215
6 changed files with 54 additions and 9 deletions
|
@ -17,7 +17,7 @@ type WSResponse struct {
|
|||
type Connect struct {
|
||||
Server string `json:"server"`
|
||||
TLS bool `json:"tls"`
|
||||
Name string `json:"name"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Nick string `json:"nick"`
|
||||
Username string `json:"username"`
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ type Quit struct {
|
|||
type Chat struct {
|
||||
Server string `json:"server"`
|
||||
From string `json:"from"`
|
||||
To string `json:"to"`
|
||||
To string `json:"to,omitempty"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue