Is possible integrate Nodejs with Cakephp?

后端 未结 2 828
长发绾君心
长发绾君心 2021-02-09 05:44

I want to monitor in real time the data that users enter in comments table. I have an Apache server running, and suppose that has a node server on port 1337.

2条回答
  •  再見小時候
    2021-02-09 06:09

    You have basically the choice between Websockets and long polling.

    • Websockets (with Ratchet and Autobahn.js)
    • Long Polling Using Comet

    Decide which technology you want to use and start implementing your use case. Consider that Websockets are more or less new. Depending on your requirements you might not be able to use Websockets because you might have to support crappy browsers. See this page.

提交回复
热议问题