Hi,
It’s done for you. To be notified when the socket is closed, just set a closeHandler on the ServerWebSocket object.
If you need to know what kind of frame is received (continuation for example), use the frameHandler callback, while to just get the content, use the handler callback.
If you are using vertx-web, you may want to look at the sockJS bridge. It makes the interaction with the web sockets easier as it 1) creates a bridge between the web sockets and the event bus, 2) degrades smoothly if the browser does not support web sockets.
Clement