MCPcopy
hub / github.com/go-rod/rod / WebSocketable

Interface WebSocketable

lib/cdp/client.go:38–43  ·  view source on GitHub ↗

WebSocketable enables you to choose the websocket lib you want to use. Such as you can easily wrap gorilla/websocket and use it as the transport layer.

Source from the content-addressed store, hash-verified

36// WebSocketable enables you to choose the websocket lib you want to use.
37// Such as you can easily wrap gorilla/websocket and use it as the transport layer.
38type WebSocketable interface {
39 // Send text message only
40 Send(data []byte) error
41 // Read returns text message only
42 Read() ([]byte, error)
43}
44
45// Client is a devtools protocol connection instance.
46type Client struct {

Callers 5

CallMethod · 0.65
ReadMethod · 0.65
RandStringFunction · 0.65
TestBasicFunction · 0.65
consumeMessagesMethod · 0.65

Implementers 3

WebSocketlib/examples/custom-websocket/main.go
MockWebSocketlib/cdp/client_test.go
WebSocketlib/cdp/websocket.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…