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

Function WriteJSON

json.go:15–17  ·  view source on GitHub ↗

WriteJSON writes the JSON encoding of v as a message. Deprecated: Use c.WriteJSON instead.

(c *Conn, v interface{})

Source from the content-addressed store, hash-verified

13//
14// Deprecated: Use c.WriteJSON instead.
15func WriteJSON(c *Conn, v interface{}) error {
16 return c.WriteJSON(v)
17}
18
19// WriteJSON writes the JSON encoding of v as a message.
20//

Callers 1

TestDeprecatedJSONFunction · 0.85

Calls 1

WriteJSONMethod · 0.80

Tested by 1

TestDeprecatedJSONFunction · 0.68