Skip to content
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

Is Websocket support planned? #688

Closed
naiteon opened this issue Jan 26, 2021 · 9 comments
Closed

Is Websocket support planned? #688

naiteon opened this issue Jan 26, 2021 · 9 comments
Labels

Comments

@naiteon
Copy link

naiteon commented Jan 26, 2021

I have a local html file in a raspberry pi that i open thru chromium in kiosk mode. It works really well connects to both local and remote websocket servers. But I'm afraid it is gonna mess up in the future since there is no way to stop chromium from trying to auto update and who knows which undesired UI prompt or window they may come up with next release, which i can't show to the kiosk users!

I tried this module then in the hopes i could have a webview without future messes from chromium BUT unfortunately it can't connect to any websocket server. I tried to read through the issues to see if websocket is supported but it is still inconclusive.

Is there any flag or parameter required to enable websocket?

@r0x0r
Copy link
Owner

r0x0r commented Jan 27, 2021

As you have probably seen already there are a couple of old issues related to web sockets, all of them are resolved in one way or another. I have not personally tested web sockets on RPI or elsewhere, so I have no idea how well it is supported. GTK is currently the only viable renderer choice for RPI and the truth is it is not very capable.

I think the best course would be to get QT with QTWebEngine support up and running on RPI. I have investigated it to some extent as described here #523, but could not get it running. More specifically QT works fine, but not QTWebEngine. Help is appreciated.

@naiteon
Copy link
Author

naiteon commented Jan 27, 2021

Thank you so much for your attention and kind response @r0x0r ! I ended up using GTK and WebKit2 in C++. I think we could make a webkit2 binding through gtk. I could help if you want.

@r0x0r
Copy link
Owner

r0x0r commented Jan 27, 2021

Pywebview uses GTK and WebKit2 already. Is C++ variant any different?

@naiteon
Copy link
Author

naiteon commented Jan 27, 2021 via email

@naiteon
Copy link
Author

naiteon commented Jan 27, 2021

On the raspberry pi I've used these libraries:

libgtk-3-dev libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev

@r0x0r
Copy link
Owner

r0x0r commented Jan 28, 2021

pywebview uses PyGObject with relies on the same libraries. Might it be a case of old PyGObject installed or something along these lines?

@naiteon
Copy link
Author

naiteon commented Jan 28, 2021 via email

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Feb 28, 2021
@github-actions
Copy link

github-actions bot commented Mar 5, 2021

The message to post on the issue when closing it. If none provided, will not comment when closing an issue.

@github-actions github-actions bot closed this as completed Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants