socket

package
v1.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(ctx context.Context, conn *websocket.Conn, dst any) error

Read reads a JSON payload from conn into dst.

Read handles zlib-stream compressed payloads when necessary.

func Write

func Write(ctx context.Context, conn *websocket.Conn, m websocket.MessageType, dst any) error

Write writes a JSON payload from dst to conn.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL