pike.git / lib / modules / Web.pmod / EngineIO.pmod

version» Context lines:

pike.git/lib/modules/Web.pmod/EngineIO.pmod:144:   private Regexp acceptgzip = Regexp("(^|,)gzip(,|$)");   private Regexp xxsua = Regexp(";MSIE|Trident/");      //! @param options   //! Optional options to override the defaults.   //! This parameter is passed down as is to the underlying   //! @[Socket].   //!   //! @seealso   //! @[Socket.create()] - final object(Socket)|zero farm(object createtype, + final object(Socket)|zero farm(program(Socket) createtype,    Protocols.WebSocket.Request req,    void|mapping(string:mixed) options) {    string sid;    PD("Request %O\n", req.query);    if (sid = req.variables.sid) {    Socket client;    if (!(client = clients[sid]))    req.response_and_finish((["data":"Unknown sid",    "error":Protocols.HTTP.HTTP_GONE]));    else