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
Post a Comment