Skip to content

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

Closed
wants to merge 12 commits into from

Conversation

Re-volution
Copy link

WebSocketServer and WebSocketServer no longer exist in godot4

WebSocketClient and WebSocketServer  no longer exist in godot4
@AThousandShips AThousandShips added area:manual Issues and PRs related to the Manual/Tutorials section of the documentation cherrypick:4.1 labels Aug 24, 2023
@AThousandShips AThousandShips requested a review from Faless August 24, 2023 12:56
Copy link
Member

@AThousandShips AThousandShips left a 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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this removed?

Copy link
Author

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

Copy link
Member

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

Copy link
Author

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.

Copy link
Member

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

Copy link
Member

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

Copy link
Author

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.

@Piralein
Copy link
Member

Please take #7645 into account.
We would like to prevent duplicate work.

@AThousandShips
Copy link
Member

That's true had completely forgotten that one existed as well

@AThousandShips
Copy link
Member

Thank you for your contribution, sorry it didn't work out, hope to see other contributions from you in the future friend!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
archived area:manual Issues and PRs related to the Manual/Tutorials section of the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants