kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 6e7de9ab93fc5d61bbda260aa8325aabe9900094
parent 006f764d96e5d4e164e34fa2132c79081b423c57
Author: Joris Vink <joris@coders.se>
Date:   Mon, 30 Jan 2017 22:40:59 +0100

update python ws example.

Diffstat:
examples/python/src/websockets.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/examples/python/src/websockets.py b/examples/python/src/websockets.py @@ -33,8 +33,12 @@ def onconnect(c): # In this example we use the websocket_broadcast() method from kore to # simply relay the message to all other connection clients. # +# If you want to send data directly back to the connection you can +# use kore.websocket_send(connection, op, data) +# def onmessage(c, op, data): kore.websocket_broadcast(c, op, data, kore.WEBSOCKET_BROADCAST_GLOBAL) + #kore.websocket_send(c, op, data) # # Called for every connection that goes byebye.