Versions in this module Expand all Collapse all v0 v0.2.1 Aug 4, 2026 Changes in this version + const DefaultTimeout + type Client struct + func Dial(ctx context.Context, wsURL string) (*Client, error) + func NewClient(conn Conn) *Client + func (c *Client) Close() error + func (c *Client) Err() error + func (c *Client) Send(method string, params interface{}) (json.RawMessage, error) + func (c *Client) SendContext(ctx context.Context, method string, params interface{}) (json.RawMessage, error) + func (c *Client) SendToSession(ctx context.Context, sessionID string, method string, params interface{}) (json.RawMessage, error) + func (c *Client) Subscribe(method string, handler func(Event)) + type Conn interface + Close func(code websocket.StatusCode, reason string) error + Read func(ctx context.Context) (websocket.MessageType, []byte, error) + Write func(ctx context.Context, typ websocket.MessageType, p []byte) error + type Error struct + Code int + Data string + Message string + func (e *Error) Error() string + type Event struct + Method string + Params json.RawMessage + SessionID string + type Request struct + ID int64 + Method string + Params interface{} + SessionID string + type Response struct + Error *Error + ID int64 + Result json.RawMessage