File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,9 @@ export class Server extends EventEmitter {
272272
273273 const escapedPath = this . _path . replace ( / [ - \/ \\ ^ $ * + ? . ( ) | [ \] { } ] / g, "\\$&" ) ;
274274 this . clientPathRegex = new RegExp (
275- "^" + escapedPath + "/socket\\.io(\\.min)?\\.js(\\.map)?$"
275+ "^" +
276+ escapedPath +
277+ "/socket\\.io(\\.min|\\.msgpack\\.min)?\\.js(\\.map)?$"
276278 ) ;
277279 return this ;
278280 }
Original file line number Diff line number Diff line change 1313 ],
1414 "files" : [
1515 " dist/" ,
16+ " client-dist/" ,
1617 " wrapper.mjs"
1718 ],
1819 "type" : " commonjs" ,
Original file line number Diff line number Diff line change @@ -92,6 +92,16 @@ describe("socket.io", () => {
9292 } ) ;
9393 } ) ;
9494
95+ it (
96+ "should serve bundle with msgpack parser" ,
97+ testSource ( "socket.io.msgpack.min.js" )
98+ ) ;
99+
100+ it (
101+ "should serve source map for bundle with msgpack parser" ,
102+ testSourceMap ( "socket.io.msgpack.min.js.map" )
103+ ) ;
104+
95105 it ( "should handle 304" , done => {
96106 const srv = createServer ( ) ;
97107 new Server ( srv ) ;
You can’t perform that action at this time.
0 commit comments