WebBrowser::OpenWebSocket (open)

Opens a websocket

Syntax

LOADLIB "wh::internet/webbrowser.whlib";

RECORD FUNCTION OpenWebSocket(STRING url, RECORD ARRAY headers)

Parameters

STRING URL

URL to connect to

RECORD ARRAY headers

List of headers

STRING field

Header field name

STRING value

Header value

Return value

RECORD

Websocket connection

conn

Websocket client connection (type: WebSocketClientConnection)

success

Whether the connection has been succesfully opened