mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-25 03:01:58 -05:00
WebSocket and PyWorker fixes (#2366)
* WebSocket and PyWorker fixes * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
eaa6711756
commit
a129be8136
@@ -14,7 +14,7 @@
|
||||
print(event.type)
|
||||
ws.send("hello")
|
||||
|
||||
def onmessage(event):
|
||||
async def onmessage(event):
|
||||
print(event.type, event.data)
|
||||
ws.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user