auws

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConnectionReadLimit int64 = 65536

DefaultConnectionReadLimit is the maximum read size of a message on the connection. I don't actually know what the max message size is coming out of auto-merge. /shrug

View Source
var DefaultPingTimeout = time.Second * 30

DefaultPingTimeout is the timeout to wait for a next message. When quiet this is the maximum interval between pings from the remote side.

View Source
var DefaultPongTimeout = time.Second * 10

DefaultPongTimeout is the timeout to wait for a pong reply for the pings we send

View Source
var DefaultWriteTimeout = time.Second * 10

DefaultWriteTimeout is the timeout after writing a message for it to be acked.

Functions

func Sync

func Sync(ctx context.Context, logger *slog.Logger, conn *websocket.Conn, doc *automerge.Doc, untilCaughtUp bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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