@webqit/webflo 1.0.3 → 1.0.5

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
@@ -12,7 +12,7 @@
12
12
  "vanila-javascript"
13
13
  ],
14
14
  "homepage": "https://webqit.io/tooling/webflo",
15
- "version": "1.0.3",
15
+ "version": "1.0.5",
16
16
  "license": "MIT",
17
17
  "repository": {
18
18
  "type": "git",
@@ -1,10 +1,12 @@
1
1
  import { WebfloStorage } from '../../WebfloStorage.js';
2
2
 
3
3
  export class SessionStorage extends WebfloStorage {
4
- #type;
4
+ static create(request) {
5
+ return new this(request);
6
+ }
5
7
 
6
- static async create(request) {
7
- return new this;
8
+ constructor(request) {
9
+ super(request, true);
8
10
  }
9
11
 
10
12
  async commit(response) {
@@ -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);