@ccci/micro-server 1.0.84 → 1.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -119710,10 +119710,11 @@ class BaseSocketHandler {
|
|
|
119710
119710
|
async disconnect(ws, code, reason) {
|
|
119711
119711
|
throw new Error("disconnect(ws:ServerWebSocket, code:number, reason: string) - not yet implemented!");
|
|
119712
119712
|
}
|
|
119713
|
-
static
|
|
119714
|
-
let params;
|
|
119713
|
+
static parse(url) {
|
|
119714
|
+
let params = {};
|
|
119715
119715
|
const urlObject = new URL(url);
|
|
119716
|
-
|
|
119716
|
+
const path5 = urlObject.search.replaceAll("?", "");
|
|
119717
|
+
let queries = path5.split("&");
|
|
119717
119718
|
queries.forEach((query) => {
|
|
119718
119719
|
let pair = query.split("=");
|
|
119719
119720
|
let key = pair[0].trim();
|
|
@@ -30,6 +30,6 @@ export default class BaseSocketHandler {
|
|
|
30
30
|
* @param reason {reason}
|
|
31
31
|
*/
|
|
32
32
|
disconnect(ws: ServerWebSocket, code: number, reason: string): Promise<void>;
|
|
33
|
-
static
|
|
33
|
+
static parse(url: String): any;
|
|
34
34
|
}
|
|
35
35
|
//# sourceMappingURL=BaseSocketHandler.d.ts.map
|