mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
@@ -272,7 +272,9 @@ export class Server extends EventEmitter {
|
||||
|
||||
const escapedPath = this._path.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
||||
this.clientPathRegex = new RegExp(
|
||||
"^" + escapedPath + "/socket\\.io(\\.min)?\\.js(\\.map)?$"
|
||||
"^" +
|
||||
escapedPath +
|
||||
"/socket\\.io(\\.min|\\.msgpack\\.min)?\\.js(\\.map)?$"
|
||||
);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
],
|
||||
"files": [
|
||||
"dist/",
|
||||
"client-dist/",
|
||||
"wrapper.mjs"
|
||||
],
|
||||
"type": "commonjs",
|
||||
|
||||
@@ -92,6 +92,16 @@ describe("socket.io", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it(
|
||||
"should serve bundle with msgpack parser",
|
||||
testSource("socket.io.msgpack.min.js")
|
||||
);
|
||||
|
||||
it(
|
||||
"should serve source map for bundle with msgpack parser",
|
||||
testSourceMap("socket.io.msgpack.min.js.map")
|
||||
);
|
||||
|
||||
it("should handle 304", done => {
|
||||
const srv = createServer();
|
||||
new Server(srv);
|
||||
|
||||
Reference in New Issue
Block a user