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

websocket.conf (400B)



      1 # Kore websocket example
      2 
      3 server tls {
      4 	bind 127.0.0.1 8888
      5 }
      6 
      7 load		./websocket.so
      8 
      9 # Increase workers so connections are spread
     10 # across them to demonstrate WEBSOCKET_BROADCAST_GLOBAL.
     11 workers		4
     12 
     13 websocket_maxframe	65536
     14 websocket_timeout	20
     15 
     16 domain * {
     17 	attach		tls
     18 
     19 	certfile	cert/server.pem
     20 	certkey		cert/key.pem
     21 
     22 	route / {
     23 		handler page
     24 	}
     25 
     26 	route /connect {
     27 		handler page_ws_connect
     28 	}
     29 }