Please add protocol in Websocketclient

Hi
In line 135 of WebLib.WebSocketClient:

me.FWebSocket = new windowme.FSupport;

it is NOT possible to select a websocketprotocol from the server.

It needs to have a property "serverprotocol" or an overload constructor with a extra argument "serverprotocol", and the above line to be:

me.FWebSocket = new window[me.FSupport](w, serverprotocol);

This will help to connect to websocket servers that need to select the protocol to use upon connection.
It is a feature request, but please, can you include it in the next update?
Thank you in advance

Hi,

From the MDN docs, the protocols parameter can be a string or an array of strings, so we added this as a published Protocols: TStringList property at component level. The next version will contain the new addition.

1 Like

many, many thanks

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.