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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/EngineIO.pmod:740:    request = req;    if ((s = req.variables->transport) == curtransport)    conn.onrequest(req);    else    switch (s) {    default:    req.response_and_finish((["data":"Invalid transport",    "error":Protocols.HTTP.HTTP_UNSUPP_MEDIA]));    return 0;    case "websocket": -  upgtransport = WebSocket(req, req.websocket_accept(0, _options)); +  upgtransport = +  WebSocket(req, req.websocket_accept(0, UNDEFINED, _options));    upgtransport.read_cb = upgrecv;    }    }       private string _sprintf(int type, void|mapping flags) {    string res=UNDEFINED;    switch (type) {    case 'O':    res = sprintf(DRIVERNAME"(%s.%d,%s,%d,%d,%d,%d)",    sid, protocol, curtransport, state, sendq.size(),    recvq.is_empty(),sizeof(clients));    break;    }    return res;    }   }