TangMonk
V2EX  ›  Node.js

有人使用 primus 吗?

  •  
  •   TangMonk · Jan 19, 2015 · 4291 views
    This topic created in 4326 days ago, the information mentioned may be changed or developed.

    socketio, sockjs, faye, Engine.IO, BrowserChannel 等众多realtime framework 的wrapper

    https://github.com/primus/primus#what-is-the-best-way-to-scale-primus

    感觉很nice, 有人用过吗?

    4 replies  •  2015-02-05 06:05:28 +08:00
    breeswish
    breeswish
    Jan 19, 2015
    1
    感觉用着 socket.io 挺好的…
    TangMonk
    TangMonk
    OP
    Jan 19, 2015
    2
    @breeswish socket.io还行,不过移动端目前只能用0.9系列的,客户端必须要socket.io client才能连接
    TangMonk
    TangMonk
    OP
    Jan 19, 2015
    3
    @TangMonk 感觉还是sockjs好, primus在又在他们的上面加了一层封装,socket.io 和sockjs之前轻松切换,只需要一行代码。 而且还给sockjs增加的自动重连机制等等。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2042 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:25 · PVG 23:25 · LAX 07:25 · JFK 10:25
    ♥ Do have faith in what you're doing.