A HTTP service allow server push message to browsers. Based on websocket.
- pip install tornado
- Edit config.py. If server and client both at localhost, skip this step.
- Run service:
python websocket_messager.py
- Open the example page with browser:
http://localhost:8100/example
. - Try to post some
msg
to messager url:dev.wis.com:8100/msg
. Note: The example page only detectmsg
argument in post data. This can be change in your app. - See the msg on your browser.
- Browser chat.
- Push message to browser from server.