Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

The module WebSocketHelperMBS

module WebSocketHelperMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
module Network MBS Network Plugin 12.5 Yes Yes Yes Yes No
Function: Helper functions for implementing web sockets.
Example:
// short packet
dim s as string = WebSocketHelperMBS.AddHeader("Hello")
dim b as Boolean = WebSocketHelperMBS.FrameMasked(s)
dim t as string = WebSocketHelperMBS.Unmask(s)

// long packet
dim text as string = "Hello World. This is just a sample text with a little bit more characters to make it at least 127 characters long for this test."
dim s2 as string = WebSocketHelperMBS.AddHeader(text)
dim b2 as Boolean = WebSocketHelperMBS.FrameMasked(s2)
dim t2 as string = WebSocketHelperMBS.Unmask(s2)

Break // look in debugger
This item is deprecated and should no longer be used. You can use WebSocketMBS instead.

Feedback, Comments & Corrections

Opcode Values

Constant Value Description
kOpCodeBinaryFrame 2 Binary Frame
kOpCodeClose 8 Close
kOpCodeContinuation 0 Continuation
kOpCodeEnd 7 End
kOpCodePing 9 Ping
kOpCodePong 10 Pong
kOpCodeTextFrame 1 Text frame

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




Links
MBS FileMaker Plugins