(url ...string)
| 129 | } |
| 130 | |
| 131 | func (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 | |
| 142 | func (s *StepWebSocket) OpenConnection(url ...string) *StepWebSocket { |
| 143 | s.step.WebSocket.Type = wsOpen |
no outgoing calls
no test coverage detected