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

HTML5 WebSockets and Comet

  •  
  •   disinfeqt · 2010-09-30 09:59:53 +08:00 · 6234 次点击
    这是一个创建于 4983 天前的主题,其中的信息可能已经有所发展或是发生改变。
    =>

    http://pusherapp.com/
    http://beaconpush.com/
    http://www.cometify.org/

    Things to be done by. Because @Livid jibs at developing an AJAX framework for V2EX, so I say: Hey, WebSockets!
    This is the kinda technology that you have to pay attention to.
    10 条回复    1970-01-01 08:00:00 +08:00
    disinfeqt
        2
    disinfeqt  
    OP
       2010-09-30 10:07:26 +08:00
    @billychow I'm not talking about running "as a" server.
    zhaiduo
        3
    zhaiduo  
       2010-09-30 10:12:53 +08:00
    billychow
        4
    billychow  
       2010-09-30 10:27:45 +08:00
    我觉得问题根本不是在于是否作为 SERVER,而是 GAE 的限制,你不能创建一个持久的链接,无论是 pull 还是 push...

    "For instance, a call to a method that attempts to open a socket or write to a file will raise an exception."
    from: http://code.google.com/appengine/docs/whatisgoogleappengine.html
    billychow
        5
    billychow  
       2010-09-30 17:37:50 +08:00
    刚刚似乎找到了一个可能:Channel API
    但是似乎还没有开放,只能申请体验
    https://spreadsheets.google.com/a/google.com/viewform?formkey=dGFxQ1A4T1BSYWxNdFlYVFhUcmg2amc6MQ
    Livid
        6
    Livid  
    MOD
       2010-09-30 17:40:59 +08:00
    I'll study it.
    lamengao
        7
    lamengao  
       2010-09-30 17:42:55 +08:00
    Building real-time web apps with App Engine and the Feed API
    http://goo.gl/zrbc
    lepture
        8
    lepture  
       2010-09-30 18:51:07 +08:00
    @billychow gae blog曾经有一篇提到过Comet, 将会在以后提供吧。
    billychow
        9
    billychow  
       2010-09-30 18:55:22 +08:00
    嗯,Google I/O 上也有讲过,还放了 DEMO。
    不过现在还没有开放,非常期待这个功能,因为我目前做的一个应用就是 pull,而由于 gae 的计划任务限制最小间隔时间为 1 分钟,所以实时性不能保障,有些浪费资源。
    lamengao
        10
    lamengao  
       2010-09-30 19:15:52 +08:00
    GAE的roadmap中有对Comet的支持,就是不知道是什么时候了。
    http://code.google.com/appengine/docs/roadmap.html
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1553 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:59 · PVG 07:59 · LAX 16:59 · JFK 19:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.