-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Update websocket.rst,remove WebSocketClient #7837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WebSocketClient and WebSocketServer no longer exist in godot4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first part is now mostly redundant as it is almost exactly a copy of the code in the documentation for WebSocketPeer
, the minor changes in the code copied also made the readability worse
@@ -38,59 +38,32 @@ This example will show you how to create a WebSocket connection to a remote serv | |||
|
|||
extends Node | |||
|
|||
# The URL we will connect to | |||
export var websocket_url = "wss://libwebsockets.org" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I tried and couldn't connect to this address
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that this doesn't provide an example that can be tried to ensure you've done the right thing, your address below isn't a real address
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, maybe this should be changed to var websocket_url = "wss://localhost:8999"
, which would look better. It's best to add a comment # You need to start websocket server that listens to port 8999.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a proper working server is required, as is provided for the other PR changing this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#7645 is IMHO more clean, and predates this one, so I think this should be closed in favor of it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope to see the content he submitted as soon as possible.Thank you, my friend.
Please take #7645 into account. |
That's true had completely forgotten that one existed as well |
Co-authored-by: A Thousand Ships <[email protected]>
Co-authored-by: A Thousand Ships <[email protected]>
Co-authored-by: A Thousand Ships <[email protected]>
Co-authored-by: A Thousand Ships <[email protected]>
Co-authored-by: A Thousand Ships <[email protected]>
Co-authored-by: A Thousand Ships <[email protected]>
Co-authored-by: A Thousand Ships <[email protected]>
Co-authored-by: A Thousand Ships <[email protected]>
Co-authored-by: A Thousand Ships <[email protected]>
Co-authored-by: A Thousand Ships <[email protected]>
Thank you for your contribution, sorry it didn't work out, hope to see other contributions from you in the future friend! |
WebSocketServer and WebSocketServer no longer exist in godot4