Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add websockets or add an example of how to use websockets with the existing framework.#1278

linuxguy123 started this conversation inProposals
Discussion options

PyScript looks fantastic. However, I need a websocket for my current project. Is it possible to use a JS websocket object with PyScript instead of relying on the PyPi websocket ?

Could someone do an example of how to implement a websocket with PyScript ? Something like the equivalent of thishttps://pypi.org/project/websockets/

Keep up the great work.

Edit

https://www.reddit.com/r/PyScript/comments/uvlhsw/pyscript_and_websockets/

https://github.com/HandyGold75/PyScript-WebSocket

You must be logged in to vote

Replies: 1 comment

Comment options

~1 year after OP started this discussion. I see WebSockets reference in docs:
https://docs.pyscript.net/2025.2.2/api/#pyscriptwebsocket

However, when trying to establish connection to existing and working endpoint as shown in the example, WebSocket connection to the endpoint fails.
Is it supported?

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
2 participants
@linuxguy123@mtweeman

[8]ページ先頭

©2009-2025 Movatter.jp