Request: Cookie & Primus support
LostLogic opened this issue · 1 comments
Hi,
Some Engine.IO installations use Cookie headers for authentication. It should be quite simple to add if Socket.Options had a cookie field and the MessageWebSocket could implement cookies by adding a custom header with key "Cookie" and the string value of the cookies. Perhaps a dictionary<string,string> or similar?
I'm not sure if this is already in, but I tried to define a primus endpoint for the socket, but no luck. It defaulted to domain/engineio instead of domain/primus/engineio when var socket = new Socket("www.domain.com/primus/") or with "www.domain.com/primus/engineio/"
Thanks for taking the time to creating an EngineIO Client for .net!
I have implemented cookie headers in version 0.9.9.
To define a primus endpoint for the socket you have to use the options path property. This is the same way the javascript engine.io-client is working:
var options = new Socket.Options();
options.Hostname = "www.domain.com/";
options.Path = "primus";
Socket(options);
will result in:
http://www.domain.com/primus/