Started doing client-side routing, added some rewriting on the server to support it

This commit is contained in:
khlieng 2015-02-03 00:25:52 +01:00
parent eec82a7dd9
commit 0b8e97b215
6 changed files with 54 additions and 9 deletions

View file

@ -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"`
}