{"modulePath":"github.com/coder/websocket","version":"v1.8.15","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package wsjson\n\nPackage wsjson provides helpers for reading and writing JSON messages.\n\n## Functions\n\n```go\nfunc Read(ctx context.Context, c *websocket.Conn, v any) error\n```\nRead reads a JSON message from c into v. It will reuse buffers in between calls to avoid allocations.\n\n```go\nfunc Write(ctx context.Context, c *websocket.Conn, v any) error\n```\nWrite writes the JSON message v to c. It will reuse buffers in between calls to avoid allocations.\n\n","path":"github.com/coder/websocket/wsjson","name":"wsjson","synopsis":"Package wsjson provides helpers for reading and writing JSON messages.","isRedistributable":true}
