x1957/ws-rpc

format response

Closed this issue · 0 comments

x1957 commented

use

type Response struct {
	Status   int    `json:"status"` // 0 ok, 1 ping, > 1 errors
	ClientId int64  `json:"clientId,omitempty"`
	Data     []byte `json:"data,omitempty"`
}