File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,12 @@ const schema = require('enigma.js/schemas/12.20.0.json');
66
66
// create a new session:
67
67
const session = enigma .create ({
68
68
schema,
69
+ // URL to running QIX Engine - might require additional parameters for authentication - see examples
69
70
url: ' ws://localhost:9076/app/engineData' ,
70
71
createSocket : url => new WebSocket (url),
71
72
});
72
73
74
+
73
75
// bind traffic events to log what is sent and received on the socket:
74
76
session .on (' traffic:sent' , data => console .log (' sent:' , data));
75
77
session .on (' traffic:received' , data => console .log (' received:' , data));
@@ -89,7 +91,7 @@ And then run it:
89
91
node my-file.js
90
92
```
91
93
92
- You may need to adjust the code so the URL points towards your running QIX Engine.
94
+ You may need to adjust the code so the URL points towards your running QIX Engine as well as handle any authentication needed .
93
95
94
96
![ /getting-started.gif] ( /getting-started.gif )
95
97
@@ -105,7 +107,7 @@ Create a HTML file `index.html` and insert the following example content:
105
107
.then (schema => {
106
108
const session = enigma .create ({
107
109
schema,
108
- // Change the url to point to your QIX instance
110
+ // Change the url to point to your QIX instance - might require additional parameters for authentication - see examples
109
111
url: ' ws://localhost:9076/app/engineData' ,
110
112
createSocket : url => new WebSocket (url)
111
113
})
You can’t perform that action at this time.
0 commit comments