Flash套接字策略

时间:2011-11-03 17:35:38

标签: flash websocket policy

当我尝试连接到我的websocket时,它说缺少闪存套接字策略,我该怎么办?

[WebSocket] cannot connect to Web Socket server at ws://example.com:10081/ (SecurityError: Error #2048) make sure the server is running and Flash socket policy file is correctly placed 
[WebSocket] closed

1 个答案:

答案 0 :(得分:1)

您需要为您的应用程序提供Flash套接字策略文件。如果您使用的是Apache,则可以使用此模块:http://socketpolicyserver.com/