#1 2024-12-03 09:25:12

keinn
Member
Registered: 2014-10-20
Posts: 111

about THttpClientWebsockets Sec-WebSocket-Protocol header

in mormot.net.ws.client line 531:
  'Sec-WebSocket-Protocol: ', aProtocol.GetSubprotocols
this header should be set by choice,
because some 3rd party ws server does not recognize this field,
it can cause connection problems

Offline

#2 2024-12-04 08:14:00

keinn
Member
Registered: 2014-10-20
Posts: 111

Re: about THttpClientWebsockets Sec-WebSocket-Protocol header

Sec-WebSocket-Protocol header is NOT a must have field in the ws standard

Offline

#3 2024-12-04 13:51:44

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,742
Website

Re: about THttpClientWebsockets Sec-WebSocket-Protocol header

You are right.
We did not use the WebSockets client with third-party servers yet, to be honest.

Please try with
https://github.com/synopse/mORMot2/commit/b9d28124

Offline

Board footer

Powered by FluxBB