funcnodes-react-flow 0.1.7__py3-none-any.whl → 0.1.9__py3-none-any.whl
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.
- funcnodes_react_flow/js/main.js +1 -1
- funcnodes_react_flow/js/main.js.LICENSE.txt +8 -0
- funcnodes_react_flow/run.py +15 -1
- {funcnodes_react_flow-0.1.7.dist-info → funcnodes_react_flow-0.1.9.dist-info}/METADATA +1 -1
- {funcnodes_react_flow-0.1.7.dist-info → funcnodes_react_flow-0.1.9.dist-info}/RECORD +7 -7
- {funcnodes_react_flow-0.1.7.dist-info → funcnodes_react_flow-0.1.9.dist-info}/WHEEL +0 -0
- {funcnodes_react_flow-0.1.7.dist-info → funcnodes_react_flow-0.1.9.dist-info}/entry_points.txt +0 -0
@@ -26,6 +26,10 @@
|
|
26
26
|
!*** external "react-dom" ***!
|
27
27
|
\****************************/
|
28
28
|
|
29
|
+
/*!*****************************!*\
|
30
|
+
!*** ./src/utils/logger.ts ***!
|
31
|
+
\*****************************/
|
32
|
+
|
29
33
|
/*!******************************!*\
|
30
34
|
!*** ./src/frontend/lib.tsx ***!
|
31
35
|
\******************************/
|
@@ -46,6 +50,10 @@
|
|
46
50
|
!*** ./src/states/fnrfzst.ts ***!
|
47
51
|
\*******************************/
|
48
52
|
|
53
|
+
/*!*******************************!*\
|
54
|
+
!*** ./src/utils/debugger.ts ***!
|
55
|
+
\*******************************/
|
56
|
+
|
49
57
|
/*!********************************!*\
|
50
58
|
!*** ./src/frontend/edge.scss ***!
|
51
59
|
\********************************/
|
funcnodes_react_flow/run.py
CHANGED
@@ -7,6 +7,7 @@ import time
|
|
7
7
|
import threading
|
8
8
|
import asyncio
|
9
9
|
import funcnodes as fn
|
10
|
+
import websockets
|
10
11
|
|
11
12
|
PORT = 8029
|
12
13
|
|
@@ -39,7 +40,7 @@ class CustomHTTPRequestHandler(http.server.SimpleHTTPRequestHandler):
|
|
39
40
|
self.send_header("Content-type", "text/json")
|
40
41
|
self.end_headers()
|
41
42
|
self.wfile.write(
|
42
|
-
f"
|
43
|
+
f"ws{'s' if self.server.worker_manager_ssl else ''}://{self.server.worker_manager_host}:{self.server.worker_manager_port}".encode(
|
43
44
|
"utf-8"
|
44
45
|
)
|
45
46
|
)
|
@@ -97,6 +98,19 @@ def _open_browser(port, delay=1.0):
|
|
97
98
|
webbrowser.open(f"http://localhost:{port}")
|
98
99
|
|
99
100
|
|
101
|
+
async def websocket_handler(websocket, path):
|
102
|
+
async for message in websocket:
|
103
|
+
print(f"Received WebSocket message: {message}")
|
104
|
+
await websocket.send(f"Echo: {message}")
|
105
|
+
|
106
|
+
|
107
|
+
def start_websocket_server(port):
|
108
|
+
asyncio.set_event_loop(asyncio.new_event_loop())
|
109
|
+
start_server = websockets.serve(websocket_handler, "localhost", port)
|
110
|
+
asyncio.get_event_loop().run_until_complete(start_server)
|
111
|
+
asyncio.get_event_loop().run_forever()
|
112
|
+
|
113
|
+
|
100
114
|
def run_server(
|
101
115
|
port=PORT,
|
102
116
|
open_browser=True,
|
@@ -11,15 +11,15 @@ funcnodes_react_flow/favicon.ico,sha256=Pk8lVbI7hfFz5QXYE2KdTUe1ZYUGWab0AvmUEmko
|
|
11
11
|
funcnodes_react_flow/index.html,sha256=YHIVeG9iBmcdLIi7XIkmbPogCC5Yz5bixu2ZojJq2b0,658
|
12
12
|
funcnodes_react_flow/js/830.js,sha256=Up3fVX5PKUFoflJaQInArDTS2koph6c35ZwZZtaKkys,146451
|
13
13
|
funcnodes_react_flow/js/830.js.LICENSE.txt,sha256=e5p1o8nk5I59O2lYb59lVhS16o36RTqkziIaZ9X8TZA,721
|
14
|
-
funcnodes_react_flow/js/main.js,sha256=
|
15
|
-
funcnodes_react_flow/js/main.js.LICENSE.txt,sha256=
|
14
|
+
funcnodes_react_flow/js/main.js,sha256=jTBaPIBy0LSgo09wvS30B_XBITHYuUxr4sd8MiFC57M,2133675
|
15
|
+
funcnodes_react_flow/js/main.js.LICENSE.txt,sha256=4pML33ARHXesIw0BmgXBM5kGGOEYjPHkaFkMjot4c2w,89522
|
16
16
|
funcnodes_react_flow/logo.png,sha256=VPvWfSSqRW-Jv7qiVsE6dxcyaB2vJp1JL60x6IA8Sbk,96855
|
17
17
|
funcnodes_react_flow/logo192.png,sha256=XAIrH5_B6T77mW4eEP2emYcTkprrwuokSWKoy27v6uU,19826
|
18
18
|
funcnodes_react_flow/logo512.png,sha256=9SEEPsgJusj_-fxvDf11ea2YpUKXOdLhSPT3DNRw9e8,65653
|
19
19
|
funcnodes_react_flow/manifest.json,sha256=ULPYw5A68_eNhxuUVXqxT045yhkurKPSz6hjyGcnmhQ,492
|
20
20
|
funcnodes_react_flow/robots.txt,sha256=kNJLw79pisHhc3OVAimMzKcq3x9WT6sF9IS4xI0crdI,67
|
21
|
-
funcnodes_react_flow/run.py,sha256=
|
22
|
-
funcnodes_react_flow-0.1.
|
23
|
-
funcnodes_react_flow-0.1.
|
24
|
-
funcnodes_react_flow-0.1.
|
25
|
-
funcnodes_react_flow-0.1.
|
21
|
+
funcnodes_react_flow/run.py,sha256=AeY-Xo5JarThx50tShTSloNLS8igCMG8fTM8QFdlKW0,4899
|
22
|
+
funcnodes_react_flow-0.1.9.dist-info/METADATA,sha256=7p9uShgrPoZRyB8Guf3c2qOn9XFJg4njvVVUn3h1TkE,433
|
23
|
+
funcnodes_react_flow-0.1.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
24
|
+
funcnodes_react_flow-0.1.9.dist-info/entry_points.txt,sha256=FbrfqRLScFuNXaVpoyfz7lPcSjTlRf4G06ZUZhTgJMM,75
|
25
|
+
funcnodes_react_flow-0.1.9.dist-info/RECORD,,
|
File without changes
|
{funcnodes_react_flow-0.1.7.dist-info → funcnodes_react_flow-0.1.9.dist-info}/entry_points.txt
RENAMED
File without changes
|