@lvce-editor/pty-host 0.16.6 → 0.16.8
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
|
@@ -2,11 +2,11 @@ import * as Assert from '../Assert/Assert.js'
|
|
|
2
2
|
import * as HandleIpc from '../HandleIpc/HandleIpc.js'
|
|
3
3
|
import * as IpcChild from '../IpcChild/IpcChild.js'
|
|
4
4
|
import * as IpcChildType from '../IpcChildType/IpcChildType.js'
|
|
5
|
-
import * as WebSocketServer from '../WebSocketServer/WebSocketServer.js'
|
|
6
5
|
|
|
7
6
|
export const handleWebSocket = async (request, handle) => {
|
|
8
7
|
Assert.object(request)
|
|
9
8
|
Assert.object(handle)
|
|
9
|
+
const WebSocketServer = await import('../WebSocketServer/WebSocketServer.js')
|
|
10
10
|
const webSocket = await WebSocketServer.handleUpgrade(request, handle)
|
|
11
11
|
webSocket.pause()
|
|
12
12
|
const ipc = await IpcChild.listen({
|