When using Vert.x 2 you are disconnected after a few seconds unless you send an initial ping to the server and continue to send it every 5-seconds.