Move JSON encoding to conn.send()

This commit is contained in:
Ken-Håvard Lieng 2015-06-07 06:32:19 +02:00
parent c6c740e24b
commit 3d20edd960
3 changed files with 9 additions and 14 deletions

View file

@ -12,8 +12,8 @@ type WSRequest struct {
}
type WSResponse struct {
Type string `json:"type"`
Response *json.RawMessage `json:"response"`
Type string `json:"type"`
Response interface{} `json:"response"`
}
type Connect struct {