MCPcopy
hub / github.com/httprunner/httprunner / withUrl

Method withUrl

hrp/step_websocket.go:131–140  ·  view source on GitHub ↗
(url ...string)

Source from the content-addressed store, hash-verified

129}
130
131func (s *StepWebSocket) withUrl(url ...string) *StepWebSocket {
132 if len(url) == 0 {
133 return s
134 }
135 if len(url) > 1 {
136 log.Warn().Msg("too many WebSocket step URL specified, using first URL")
137 }
138 s.step.WebSocket.URL = url[0]
139 return s
140}
141
142func (s *StepWebSocket) OpenConnection(url ...string) *StepWebSocket {
143 s.step.WebSocket.Type = wsOpen

Callers 6

OpenConnectionMethod · 0.95
PingPongMethod · 0.95
WriteAndReadMethod · 0.95
ReadMethod · 0.95
WriteMethod · 0.95
CloseConnectionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected