MCPcopy
hub / github.com/gorilla/websocket / ReadJSON

Function ReadJSON

json.go:40–42  ·  view source on GitHub ↗

ReadJSON reads the next JSON-encoded message from the connection and stores it in the value pointed to by v. Deprecated: Use c.ReadJSON instead.

(c *Conn, v interface{})

Source from the content-addressed store, hash-verified

38//
39// Deprecated: Use c.ReadJSON instead.
40func ReadJSON(c *Conn, v interface{}) error {
41 return c.ReadJSON(v)
42}
43
44// ReadJSON reads the next JSON-encoded message from the connection and stores
45// it in the value pointed to by v.

Callers 1

TestDeprecatedJSONFunction · 0.85

Calls 1

ReadJSONMethod · 0.80

Tested by 1

TestDeprecatedJSONFunction · 0.68