python - Sockjs and tornado: How Sent and Read Data -
i’m trying learn sockjs small university project.
i’ve local server (with typical lamp configuration), goal writing python script (running on local server) able send data client browser in order update text information.
sockjs seemed me best solution (tornado-sockjs python server). read tutorial examples (https://github.com/mrjoes/sockjs-tornado/tree/master/examples) i’ve difficult understand basic functions.
it useful understand example code. example be:
a python-server script generates random number each 5 seconds , send number client. in webpage there definite element update value. in same webpage there button send text message python server. when python server received message, print in server console.
thank in advance help.
i hope post useful other people.
Comments
Post a Comment