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

后端 未结 9 1738
终归单人心
终归单人心 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.

提交回复
热议问题