简体   繁体   English

WebChromeClient Websocket支持吗?

[英]WebChromeClient Websocket support?

Android comes with two webviews (SetWebViewClient and SetWebChromeClient) and it's painfully obvious that the regular web client has zero websocket support. Android带有两个webview(SetWebViewClient和SetWebChromeClient),很明显,常规Web客户端对websocket的支持为零。

However, I'm not sure of the capabilities of the WebChromeClient, except that Chrome on an Android browser seems to support Websockets. 但是,我不确定WebChromeClient的功能,只是Android浏览器上的Chrome似乎支持Websocket。

Can someone confirm if WebChromeClient supports Websockets? 有人可以确认WebChromeClient是否支持Websockets吗?

(This particular answer didn't provide enough info about WebChromeClient What's the difference between setWebViewClient vs. setWebChromeClient? ) (此特定答案未提供有关WebChromeClient 足够信息。setWebViewClient与setWebChromeClient有什么区别?

There is a simple test to check if your browser has websocket support. 有一个简单的测试可以检查您的浏览器是否支持websocket。 Launch below url and ping the public hosted service. 在url下启动并ping公共托管服务。 If you are able to ping from your browser it has support :) 如果您能够从浏览器ping到它,则可以使用它:)

https://www.websocket.org/echo.html https://www.websocket.org/echo.html

I have put these details on my blog, here . 我已经把我的博客上的这些细节, 在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM