-
Notifications
You must be signed in to change notification settings - Fork 856
Closed
Labels
Description
Hello,
first of all, thank you for sharing this work, it is very useful.
I'm working on a iOs app that integrate socket.ios, i need to send cookies also when forceWebsockets is setted to true.
It seems like WebSocket doesn't sends cookies with the request also if SocketIOClient has cookies.
My app instantiate SocketIOClient in this way:
self.socket = SocketIOClient(socketURL: endpoint, options: ["forceWebsockets" : true, "cookies" : cookiesToSet])
but the server doesn't receive any cookies.
I've solved this issue by adding manually the cookies header in WebSocket (createHTTPRequest) .
Are there another way to accomplish this?
It is a right to send cookies using WebSocket transport?