Move JSON encoding to conn.send()
This commit is contained in:
parent
c6c740e24b
commit
3d20edd960
3 changed files with 9 additions and 14 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue