Xojo Conferences
XDCMay2019MiamiUSA
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

WebSocketHelperMBS.AddHeader(data as Memoryblock, opCode as Integer = 7) as Memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 12.5 Yes Yes Yes Yes No
Function: Adds header to a frame.
Notes: Depending on the length of the frame we add two to ten bytes in front with the opcode included and the length information.

See also:

Feedback, Comments & Corrections

WebSocketHelperMBS.AddHeader(data as string, opCode as Integer = 7) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 12.5 Yes Yes Yes Yes No
Function: Adds header to a frame.
Notes: Depending on the length of the frame we add two to ten bytes in front with the opcode included and the length information.

See also:

Feedback, Comments & Corrections

WebSocketHelperMBS.FrameMasked(data as Memoryblock) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 12.5 Yes Yes Yes Yes No
Function: Whether the frame is masked or not.
Notes: Returns true if the first bit of the first byte is set.

See also:

Feedback, Comments & Corrections

WebSocketHelperMBS.FrameMasked(data as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 12.5 Yes Yes Yes Yes No
Function: Whether the frame is masked or not.
Notes: Returns true if the first bit of the first byte is set.

See also:

Feedback, Comments & Corrections

WebSocketHelperMBS.Unmask(data as Memoryblock) as Memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 12.5 Yes Yes Yes Yes No
Function: Unmasks a data packet.
Notes:
Does the reverse of AddHeader.
The string returned has no encoding defined.
For a text frame, you should use DefineEncoding with UTF-8.

See also:

Feedback, Comments & Corrections

WebSocketHelperMBS.Unmask(data as Memoryblock, byref Offset as Integer, byref Length as Integer, byref TotalLength as Integer) as Memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 14.1 Yes Yes Yes Yes No
Function: Unmasks a data packet.
Notes:
Does the reverse of AddHeader.
The string returned has no encoding defined.
For a text frame, you should use DefineEncoding with UTF-8.
This method also sets Offset, Length and TotalLength parameters.

See also:

Feedback, Comments & Corrections

WebSocketHelperMBS.Unmask(data as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 12.5 Yes Yes Yes Yes No
Function: Unmasks a data packet.
Notes:
Does the reverse of AddHeader.
The string returned has no encoding defined.
For a text frame, you should use DefineEncoding with UTF-8.

See also:

Feedback, Comments & Corrections

WebSocketHelperMBS.Unmask(data as string, byref Offset as Integer, byref Length as Integer, byref TotalLength as Integer) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Network MBS Network Plugin 14.1 Yes Yes Yes Yes No
Function: Unmasks a data packet.
Notes:
Does the reverse of AddHeader.
The string returned has no encoding defined.
For a text frame, you should use DefineEncoding with UTF-8.
This method also sets Offset, Length and TotalLength parameters.

See also:

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins