Documentation ¶
Overview ¶
Package ws provides a test WebSocket server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CDPDefaultHandler ¶
func CDPDefaultHandler(conn *websocket.Conn, msg *cdproto.Message, writeCh chan cdproto.Message, done chan struct{})
CDPDefaultHandler is a default handler for the CDP WS server.
func WithCDPHandler ¶
func WithCDPHandler( path string, fn func(conn *websocket.Conn, msg *cdproto.Message, writeCh chan cdproto.Message, done chan struct{}), cmdsReceived *[]cdproto.MethodType, ) func(*Server)
WithCDPHandler attaches a custom CDP handler function to Server.
func WithClosureAbnormalHandler ¶
WithClosureAbnormalHandler attaches an abnormal closure behavior to Server.
func WithEchoHandler ¶
WithEchoHandler attaches an echo handler to Server.
Types ¶
Click to show internal directories.
Click to hide internal directories.