diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-11-03 16:21:13 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-11-03 16:21:13 (GMT) |
commit | cb30bd1f44fcc3a0642a362afd4eaea0d8a7d199 (patch) | |
tree | 8cfcf2ceca801c5d506e03d0e187f440094d1674 /apps/samples/websockets/websockets.scxml | |
parent | 9caf9ade8ff87a1cb94fb612df4abd96fb5ed239 (diff) | |
download | uscxml-cb30bd1f44fcc3a0642a362afd4eaea0d8a7d199.zip uscxml-cb30bd1f44fcc3a0642a362afd4eaea0d8a7d199.tar.gz uscxml-cb30bd1f44fcc3a0642a362afd4eaea0d8a7d199.tar.bz2 |
First signs of WebSockets and some changes to miles
Diffstat (limited to 'apps/samples/websockets/websockets.scxml')
-rw-r--r-- | apps/samples/websockets/websockets.scxml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/samples/websockets/websockets.scxml b/apps/samples/websockets/websockets.scxml new file mode 100644 index 0000000..0050091 --- /dev/null +++ b/apps/samples/websockets/websockets.scxml @@ -0,0 +1,16 @@ +<scxml datamodel="ecmascript" name="websockets"> + <script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" /> + <state id="main"> + <transition target="main" event="http.get" cond="_event.data.header['Upgrade'] === 'websocket'"> + <respond status="101"> + + </respond> + </transition> + + <transition target="main" event="*"> + <script> + dump(_event); + </script> + </transition> + </state> +</scxml>
\ No newline at end of file |