This application presents Echo sample. The user sends a text message, server concatenates text " (from your server)" to the message and sends it back.
The application utilizes endpoint org.glassfish.tyrus.sample.echo.EchoEndpoint
to receive messages, add
the text and send it back.
Server endpoint also closes the connection after message is sent back, which should be indicated on the client side
as well.
Run the example as follows: deploy:
$AS_MAIN/bin/asadmin start-domain
$AS_MAIN/bin/asadmin deploy --force ./target/*war
From a web browser, visit:
http://localhost:8080/sample-echo