Build a whole site using just websockets (via socket.io and node.js, no Ajax)?

前端 未结 4 1608
囚心锁ツ
囚心锁ツ 2021-02-08 07:39

Is this possible? Has anyone tried it?

Using websockets means there are no httpheaders being exchanged (like in a Ajax request) so there is definately a boost in speed o

4条回答
  •  暖寄归人
    2021-02-08 07:51

    Have a look at SocketStream: https://github.com/socketstream/socketstream

    SocketStream is a new Node.js web framework dedicated to creating single-page real time websites.

    There will be some initial loading of resources but WebSockets will be used extensively for Client <-> Server communication.

提交回复
热议问题