WebSocketClientSendServer 方法 (Int32, Boolean, Byte) |
发送自定义的命令到WebSocket服务器,可以指定操作码,是否掩码操作,原始字节数据
Send custom commands to the WebSocket server, you can specify the operation code, whether to mask operation, raw byte data
命名空间:
HslCommunication.WebSocket
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult SendServer(
int opCode,
bool mask,
byte[] payload
)
Public Function SendServer (
opCode As Integer,
mask As Boolean,
payload As Byte()
) As OperateResult
public:
OperateResult^ SendServer(
int opCode,
bool mask,
array<unsigned char>^ payload
)
member SendServer :
opCode : int *
mask : bool *
payload : byte[] -> OperateResult
参数
- opCode
- 类型:SystemInt32
操作码 - mask
- 类型:SystemBoolean
是否进行掩码操作 - payload
- 类型:SystemByte
原始字节数据
返回值
类型:
OperateResult是否发送成功
参见