MCPcopy Create free account
hub / github.com/gavv/httpexpect / newWebsocket

Function newWebsocket

websocket.go:60–68  ·  view source on GitHub ↗
(parent *chain, config Config, conn WebsocketConn)

Source from the content-addressed store, hash-verified

58}
59
60func newWebsocket(parent *chain, config Config, conn WebsocketConn) *Websocket {
61 config.validate()
62
63 return &Websocket{
64 config: config,
65 chain: parent.clone(),
66 conn: conn,
67 }
68}
69
70// Conn returns underlying WebsocketConn object.
71// This is the value originally passed to NewConnection.

Calls 2

validateMethod · 0.80
cloneMethod · 0.45

Tested by 15

TestWebsocket_ExpectFunction · 0.68
TestWebsocket_CloseFunction · 0.68
TestWebsocket_WriteTextFunction · 0.68
TestWebsocket_WriteJSONFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…