On the server
As a first step, we need to setup the that is provided by the vertx-web
project:
Allow delivery of messages coming from the browser on the address. We will use this address to get the server process the Markdown content as we edit a wiki page.
Handle all requests under the
/eventbus
path with the SockJS handler.
On the client
Now that the server is ready to accept messages, we shall configure the client.
Then, we create a new instance of the EventBus
Javascript object: