【发布时间】:2014-11-25 04:41:09
【问题描述】:
我在不同的服务器上使用 angulajs 作为前端,使用 node.js REST API 作为后端。我想使用 socket.io,但可以从我正在使用的 node.js 服务器获取客户端上的 socket.io.js 文件
<script src="http://localhost:3000/node_modules/socket.io/socket.js"></script>
获取socket.io文件。
错误: GET "localhost:3000/node_modules/socket.io/socket.js"
【问题讨论】:
-
你看this link了吗?
标签: javascript node.js angularjs