我已经在我的系统中实现了rails-5的动作电缆,并且它在localhost上运行正常,但是当我尝试用ip绑定时,它会给出以下错误消息.
WebSocket connection to ‘ws://192.168.1.46:3002/cable’ Failed: Error
during WebSocket handshake: Unexpected response code: 404
并在终端日志中
Failed to upgrade to WebSocket (REQUEST_METHOD: GET,HTTP_CONNECTION:
Upgrade,HTTP_UPGRADE: websocket)
我已经对我的development.rb进行了更改
config.action_cable.url = "ws://192.168.1.46:3002/cable"
但没有成功.
请指导我错在哪里.
告诉我你是否需要额外的信息,提前致谢.