dart - Rikulo websockets and channels -


does rikulo stream v 0.7.2 support web sockets different channels? have seen far examples static resource files.

to handle web socket, can use websockettransformer upgrade http connection websocket connection:

new streamserver(urimapping: {   "/cmd", (httpconnect connect) =>       websockettransformer.upgrade(connect.request)       .then((websocket) {         websocket.listen((evt) {           websocket.add("server received: $evt");         });         return socket.done;       }) }).start(); 

note: web socket supported directly since rikulo stream 0.8.0. please refer the websocket handling section.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -