We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I can see we have in RFB server name, it would be great if we could return that.
I assume something like this would do it:
rfb.py:
@property def get_name(self): return self.name
client.py:
def get_server_name(self): """ Return server name as String """ return self.get_name.decode("utf-8", errors="ignore")
The text was updated successfully, but these errors were encountered:
This first part is not required as this is Python and not Java: No need to add that property as self.name can be accessed directly in client.py:
self.name
client.py
def get_server_name(self) -> str: """ Return server name as String """ return self.name.decode("utf-8", errors="ignore")
Or not even that as you can can just use client.name.decode() in your code; as of Python 3.7 utf-8 is the default anyway.
client.name.decode()
utf-8
Sorry, something went wrong.
No branches or pull requests
I can see we have in RFB server name, it would be great if we could return that.
I assume something like this would do it:
rfb.py:
client.py:
The text was updated successfully, but these errors were encountered: