Basic Pub/Sub

    Tiny SSE will function as a basic Server-Sent Events pub/sub server without using any of the Lua functionality.

    Start the server

    tinysse
    
    INFO tinysse: Listening on 127.0.0.1:1983
    

    Subscribe to SSE messages

    curl 127.0.0.1:1983/sse
    
    : ok
    

    Publish an SSE message

    curl -X POST -d data="Hello, World" 127.0.0.1:1983/sse
    {"queued":1,"subscribers":1}
    

    Subscriber receives the SSE message

    data: Hello, World