view lib/twisted_sse_demo/README.md @ 445:975384ebd88e

remove more crochet usage Ignore-this: 3e29b61bc4b44aff46407f19166a7072
author drewp@bigasterisk.com
date Thu, 18 Apr 2019 16:55:27 -0700
parents 7716b1810d6c
children
line wrap: on
line source

Twisted SSE demo
================

A twisted web server that implements server sent events (SSE)

To run this demo:

    python sse_twisted_web.py
    
Open up http://localhost:12000 in your browser.

To publish events:

    curl -d 'data=Hello!' http://localhost:12000/publish
    
You should see the data you publish in your browser. That's it!