Movatterモバイル変換


[0]ホーム

URL:


wstest

package
v1.8.13Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License:ISCImports:12Imported by:0

Details

Repository

github.com/coder/websocket

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcEcho

func Echo(ctxcontext.Context, c *websocket.Conn, maxint)error

Echo writes a message and ensures the same is sent back on c.

funcEchoLoop

func EchoLoop(ctxcontext.Context, c *websocket.Conn)error

EchoLoop echos every msg received from c until an erroroccurs or the context expires.The read limit is set to 1 << 30.

funcPipe

func Pipe(dialOpts *websocket.DialOptions, acceptOpts *websocket.AcceptOptions) (clientConn, serverConn *websocket.Conn)

Pipe is used to create an in memory connectionbetween two websockets analogous to net.Pipe.

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp