mirror of
https://github.com/pyscript/pyscript.git
synced 2026-04-05 05:00:30 -04:00
Added listeners to the constructing kw options (#2044)
This commit is contained in:
committed by
GitHub
parent
d1d1c5740f
commit
c49cb9231b
@@ -22,10 +22,12 @@
|
||||
print(event.type)
|
||||
document.documentElement.classList.add("ok")
|
||||
|
||||
ws = WebSocket(url="ws://localhost:5037/")
|
||||
ws.onopen = onopen
|
||||
ws.onmessage = onmessage
|
||||
ws.onclose = onclose
|
||||
ws = WebSocket(
|
||||
url="ws://localhost:5037/",
|
||||
onopen=onopen,
|
||||
onmessage=onmessage,
|
||||
onclose=onclose
|
||||
)
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user