I want implement a long poll in vert.x.But I do not know how I can implement in vertx. please guide me
Asked
Active
Viewed 213 times
-2
-
1This seems too broad a question. You can google example long polling implementation questions i.e. : https://stackoverflow.com/questions/34867507/long-polling-implementation . For the other part , you need to check out a vert.x tutorial – AntiqTech Dec 09 '21 at 08:40
1 Answers
0
Make an an http request from the client.
On the server request handler start a periodic timer using setPeriodic
that will write the data periodically if available via transfer chunked encoding.
Set up a setTimer
that will eventually end
the response.

Asad Awadia
- 1,417
- 2
- 9
- 15