iOS SDK - Add headers to websocket connection

Alec

New Member
Is there the possibility of being able to add headers into the websocket connection at all?

I need to add
Sec-WebSocket-Protocol: sip
to the handshake
 

Max

Administrator
Staff member
Good day.
We raised the ticket WCS-2950 to investigate it, let you know results here.
 

Max

Administrator
Staff member
Good day.
Since iOS SDK build 2.6.8 it is possible to add custom HTTP headers while establishing Websocket connection to WCS server. To do this, use the following function
Code:
FPWCSApi2Session connectWithHeaders:(NSDictionary<NSString *, NSString *> *) headers
Please see example code here
 
Top