Platforms to show: All Mac Windows Linux Cross-Platform

CURLSWebSocketFrameMBS class   New in 23.0

Type Topic Plugin Version macOS Windows Linux iOS Targets
class CURL MBS CURL Plugin 23.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: The class for a WebSocket frame.
Notes:
dim curl as CURLSMBS // your curl handle

dim m as CURLSWebSocketFrameMBS = curl.WebSocketReceive

if m <> nil then
TextAreaLog.AddText "Received: "+m.Text
end if

Flags

Constant Value Description
kFlagBinary 2 This is binary data.
kFlagClose 8 Close this transfer.
kFlagContinue 4 This is not the final fragment of the message, which implies that there will be another fragment coming as part of the same message where this bit is not set.
kFlagOffset 32 This is a partial fragment.
The provided data is only a partial fragment and there will be more in a following call to WebSocketSend(). When sending only a piece of the fragment like this, the fragsize must be provided with the total expected fragment size in the first call and it needs to be zero in subsequent calls.
kFlagPing 16 This as a ping.
kFlagPong 64 This is a pong.
kFlagText 1 The buffer contains text data.
Note that this makes a difference to WebSocket but CURL itself will not make any verification of the content or precautions that you actually send valid UTF-8 content.

This class has no sub classes.

Some methods using this class:

Some examples using this class:

Blog Entries


The items on this page are in the following plugins: MBS CURL Plugin.


CURLSVersionMBS   -   CURLURLMBS


💬 Ask a question or report a problem
The biggest plugin in space...


Start Chat