How does the live, real-time typing work in Google Wave?

后端 未结 9 1637
终归单人心
终归单人心 2021-01-30 05:29

I\'m sure Wave doesn\'t poll the server every millisecond to find out if the other user has typed something... so how can I see what the other person is typing as they type? And

相关标签:
9条回答
  • 2021-01-30 05:59

    Server Push in GWT

    Server push is the Wait, Respond, Close, Re-Open paradigm:

    • Wait: When the GWT code makes a call to your server for some data that you don't have yet, freeze (wait)

    • Respond: Once the requested data is
      available, respond with it

    • Close: Then, close the connection.

    • Re-Open: Once your GWT code receives the response, immediately open up a new connection to query for the next event.

    0 讨论(0)
  • 2021-01-30 05:59

    Pure speculation but could it be using the Server Side DOM events from the HTML 5 spec?

    0 讨论(0)
  • 2021-01-30 06:09

    Persistent HTTP, Comet

    Keep your HTTP connection alive and send characters as they are typed

    *Edit in 2014: also, take a look at WebSocket and HTTP/1.1 Upgrade header. Browsers started implementing this around 2010, so I'm adding this to original answer.

    0 讨论(0)
提交回复
热议问题