Zen API
|
kStatus kWebSocket_SetSendType | ( | kWebSocket | webSocket, |
kWebSocketDataType | type | ||
) |
Sets the data transfer type used for send operations.
In UTF-8 mode, it is the caller's responsibility to ensure that message data is valid UTF-8.
If this method is not called, kWebSocket defaults to Binary mode.
The send type cannot be changed while a message is in progress (i.e., between kStream_Write and kWebSocket_Send).
webSocket | WebSocket object. |
type | Frame type. |