TangMonk
V2EX  ›  Node.js

有人使用 primus 吗?

  •  
  •   TangMonk · Jan 19, 2015 · 3980 views
    This topic created in 4156 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
        1
    breeswish  
       Jan 19, 2015
    感觉用着 socket.io 挺好的…
    TangMonk
        2
    TangMonk  
    OP
       Jan 19, 2015
    @breeswish socket.io还行,不过移动端目前只能用0.9系列的,客户端必须要socket.io client才能连接
    TangMonk
        3
    TangMonk  
    OP
       Jan 19, 2015
    @TangMonk 感觉还是sockjs好, primus在又在他们的上面加了一层封装,socket.io 和sockjs之前轻松切换,只需要一行代码。 而且还给sockjs增加的自动重连机制等等。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2254 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 00:47 · PVG 08:47 · LAX 17:47 · JFK 20:47
    ♥ Do have faith in what you're doing.