V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
TangMonk
V2EX  ›  Node.js

有人使用 primus 吗?

  •  
  •   TangMonk · 2015 年 1 月 19 日 · 3803 次点击
    这是一个创建于 4024 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    感觉很nice, 有人用过吗?

    4 条回复    2015-02-05 06:05:28 +08:00
    breeswish
        1
    breeswish  
       2015 年 1 月 19 日
    感觉用着 socket.io 挺好的…
    TangMonk
        2
    TangMonk  
    OP
       2015 年 1 月 19 日
    @breeswish socket.io还行,不过移动端目前只能用0.9系列的,客户端必须要socket.io client才能连接
    TangMonk
        3
    TangMonk  
    OP
       2015 年 1 月 19 日
    @TangMonk 感觉还是sockjs好, primus在又在他们的上面加了一层封装,socket.io 和sockjs之前轻松切换,只需要一行代码。 而且还给sockjs增加的自动重连机制等等。
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   981 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 23:17 · PVG 07:17 · LAX 15:17 · JFK 18:17
    ♥ Do have faith in what you're doing.