@webqit/webflo 1.0.3 → 1.0.4
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/package.json
CHANGED
|
@@ -177,9 +177,7 @@ export class WebfloServer extends WebfloRuntime {
|
|
|
177
177
|
|
|
178
178
|
#globalMessagingRegistry = new Map;
|
|
179
179
|
async handleNodeWsRequest(wss, nodeRequest, socket, head) {
|
|
180
|
-
const proto = this.getRequestProto(nodeRequest);
|
|
181
|
-
console.log('__________ws:', proto);
|
|
182
|
-
|
|
180
|
+
const proto = this.getRequestProto(nodeRequest).replace('http', 'ws');
|
|
183
181
|
const [fullUrl, requestInit] = this.parseNodeRequest(proto, nodeRequest, false);
|
|
184
182
|
const scope = {};
|
|
185
183
|
scope.url = new URL(fullUrl);
|
|
@@ -240,8 +238,6 @@ export class WebfloServer extends WebfloRuntime {
|
|
|
240
238
|
|
|
241
239
|
async handleNodeHttpRequest(nodeRequest, nodeResponse) {
|
|
242
240
|
const proto = this.getRequestProto(nodeRequest);
|
|
243
|
-
console.log('__________http:', proto);
|
|
244
|
-
|
|
245
241
|
const [fullUrl, requestInit] = this.parseNodeRequest(proto, nodeRequest);
|
|
246
242
|
const scope = {};
|
|
247
243
|
scope.url = new URL(fullUrl);
|