Fix deadlock bug in websocket client impl

This commit is contained in:
Jae Kwon
2015-12-07 17:54:19 -08:00
parent 3da76496b0
commit 53f74d052f
6 changed files with 191 additions and 11 deletions

View File

@@ -7,6 +7,15 @@ type RPCRequest struct {
Params []interface{} `json:"params"`
}
func NewRPCRequest(id string, method string, params []interface{}) RPCRequest {
return RPCRequest{
JSONRPC: "2.0",
ID: id,
Method: method,
Params: params,
}
}
type RPCResponse struct {
JSONRPC string `json:"jsonrpc"`
ID string `json:"id"`