mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
index: override path with /socket.io
This commit is contained in:
@@ -100,7 +100,11 @@ Server.prototype.attach = function(srv, opts){
|
||||
srv.listen(port);
|
||||
}
|
||||
|
||||
debug('creating engine.io instance', opts);
|
||||
// set engine.io path to `/socket.io`
|
||||
opts = opts || {};
|
||||
opts.path = opts.path || '/socket.io';
|
||||
|
||||
debug('creating engine.io instance with opts %j', opts);
|
||||
if (this._static) this.serve(srv);
|
||||
srv = engine.attach(srv, opts);
|
||||
this.bind(srv);
|
||||
|
||||
Reference in New Issue
Block a user