@webqit/webflo 0.20.20 → 0.20.22

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": "0.20.20",
15
+ "version": "0.20.22",
16
16
  "license": "MIT",
17
17
  "repository": {
18
18
  "type": "git",
@@ -3,7 +3,7 @@ import Url from 'url';
3
3
  import Path from 'path';
4
4
  import Http from 'http';
5
5
  import Https from 'https';
6
- import WebSocket from 'ws';
6
+ import { WebSocketServer } from 'ws';
7
7
  import Mime from 'mime-types';
8
8
  import crypto from 'crypto';
9
9
  import 'dotenv/config';
@@ -226,7 +226,7 @@ export class WebfloServer extends WebfloRuntime {
226
226
  });
227
227
  }
228
228
 
229
- const wss = new WebSocket.Server({ noServer: true });
229
+ const wss = new WebSocketServer({ noServer: true });
230
230
 
231
231
  process.on('uncaughtException', (err) => {
232
232
  console.error('Uncaught Exception:', err);