# Programmatic Echo Sample

This application presents programmatic version of the echo sample. The user sends a text message, server concatenates text " (from your server)" to the message and sends it back.

## Contents

The application utilizes endpoint `org.glassfish.tyrus.sample.programmaticecho.MyWsConfiguration$EchoEndpoint` to receive messages, add the text and send it back. Note that the endpoint is constructed by extending the `javax.websocket.Endpoint` class.

## Running the Example

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-programmatic-echo`