func Read(ctx context.Context, c *websocket.Conn, v interface{}) error
Read reads a JSON message from c into v. It will reuse buffers in between calls to avoid allocations.
func Write(ctx context.Context, c *websocket.Conn, v interface{}) error
Write writes the JSON message v to c. It will reuse buffers in between calls to avoid allocations.