Platforms to show: All Mac Windows Linux Cross-Platform
CURLSWebSocketFrameMBS class
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| class | CURL | MBS CURL Plugin | 23.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Var curl as CURLSMBS // your curl handle
Var m as CURLSWebSocketFrameMBS = curl.WebSocketReceive
if m <> nil then
TextAreaLog.AddText "Received: "+m.Text
end if
- 13 properties
- property BytesLeft as Int64
- property BytesReceived as Int64
- property Data as MemoryBlock
- property FlagBinary as Boolean
- property FlagClose as Boolean
- property FlagContinue as Boolean
- property FlagOffset as Boolean
- property FlagPing as Boolean
- property FlagPong as Boolean
- property Flags as Integer
- property FlagText as Boolean
- property Offset as Int64
- property Text as String
- 7 constants
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. more |
| 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 subclasses.
Blog Entries
- News from the MBS Xojo Plugins in Version 23.0
- MonkeyBread Software Releases the MBS Xojo Plugins in version 23.0
- MBS Xojo Plugins, version 22.6pr3
Release notes
- Version 23.0
- Added CURLSWebSocketFrameMBS class.
Some methods using this class:
- CURLSMBS.WebSocketMeta as CURLSWebSocketFrameMBS
- CURLSMBS.WebSocketReceive(BufferSize as Integer = 65536) as CURLSWebSocketFrameMBS
Some examples using this class:
Some related classes:
The items on this page are in the following plugins: MBS CURL Plugin.