summaryrefslogtreecommitdiffstats
path: root/apps/samples/websockets/websockets.scxml
diff options
context:
space:
mode:
Diffstat (limited to 'apps/samples/websockets/websockets.scxml')
-rw-r--r--apps/samples/websockets/websockets.scxml16
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