requestWs

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoRequestWs

func DoRequestWs(req *fuzzTypes.Req, timeout int, retry int, retryRegex string) *fuzzTypes.Resp

DoRequestWs 发送WebSocket请求,支持超时、重试、响应解析 参数说明:

  • req: 包含WebSocket目标URL、发送数据等信息的请求结构体
  • timeout: 单次操作超时时间(秒),覆盖拨号、读写阶段
  • retry: 最大重试次数(失败后再试N次,总请求数为N+1)
  • retryRegex: 响应内容匹配该正则时触发重试

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL