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

评估兼容方案 #34

Closed
wangxiao opened this issue Mar 23, 2015 · 8 comments
Closed

评估兼容方案 #34

wangxiao opened this issue Mar 23, 2015 · 8 comments

Comments

@wangxiao
Copy link
Contributor

引入 flash 来兼容 websocket 。

@liuyanghejerry
Copy link

希望可以以插件的形式引入,这样移动端或者现代浏览器中可以不必加载这部分内容

@hellolibo
Copy link
Contributor

我们正使用 https://github.com/gimite/web-socket-js 做兼容,但是需要在服务端安置跨域文件。这个现在怎么处理?

@wangxiao
Copy link
Contributor Author

我尽快搞下 flash 支持,大家可以先用当前版本写业务逻辑。感谢大家提的建议。
https://github.com/gimite/web-socket-js

@xufanbb
Copy link

xufanbb commented Apr 13, 2015

请尽快给出方案啊,谢谢。在等着呢!

@wangxiao
Copy link
Contributor Author

@sunng87 帮忙 review 下,demo 测试通过。
#66
其他事情在 pull request 中讨论,关闭该 issue。

@hellolibo
Copy link
Contributor

因为跨域名的问题,我使用了 WebSocketMainInsecure.swf
但是还是出现下面的问题。

[WebSocket] debug enabled
[WebSocket] policy file: xmlsocket://chat8.avoscloud.com:843
[WebSocket] cannot connect to Web Socket server at wss://chat8.avoscloud.com:5799/ (SecurityError: Error #2048)
make sure the server is running and Flash socket policy file is correctly placed
[WebSocket] Error: Error #1009
[WebSocket] closed
WebSocket closed.
通信中断

@wangxiao wangxiao reopened this Apr 14, 2015
@wangxiao
Copy link
Contributor Author

对的,你不是用的我们提供的方法,请参考 Demo2 的代码,文档我们会尽快发布。

@wangxiao
Copy link
Contributor Author

新文档已经发布,目前使用可以抓 Master 最新的代码使用,demo2 已经兼容 IE8。
相关文档地址,查阅「兼容」相关内容 https://leancloud.cn/docs/js_realtime.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants