在localhost上使用client.html进行聊天并在线运行server.js?

时间:2012-06-24 00:42:56

标签: node.js localhost socket.io

我可以创建简单的聊天应用,例如client.html在我的localhost服务器上,server.js上传到nodester.com并在线运行(使用socket.io)?

例如,我如何调整this question中的简单聊天代码以上述方式工作(某些服务器上的server.js和我的localhost上的client.html)?

1 个答案:

答案 0 :(得分:0)

绝对。在AWS上运行聊天应用程序,在localhost上运行聊天客户端。假设它也应该可以和其他人一起使用。