@ws

@ws section defines WebSocket handlers

Example

This .arc file defines both HTTP and WebSocket endpoints:

@app
testapp

@ws
# no other config required

@http
get /

Running arc create generates the following functions:

/
|-src
| |-http
| | '-get-index/
| '-ws
|   |-connect/
|   |-default/
|   '-disconnect/
'-.arc