Skip to content

Commit 12ee3a9

Browse files
committed
specific Adapter Set name for this demo
1 parent 2a09bce commit 12ee3a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ You can deploy this demo in order to use the Lightstreamer server as Web server
4141
If you choose the former case please note that in the <LS_HOME>/pages/demos/ folder there is a copy of the /src directory of this project, if this is non your case please create the folders <LS_HOME>/pages/demos/MessengerDemo then copy here the contents of the /src folder of this project.<br>
4242
The client demo configuration assumes that Lightstreamer Server, Lightstreamer Adapters and this client are launched on the same machine. If you need to targeting a different Lightstreamer server please search this line:
4343
```js
44-
var lsClient = new LightstreamerClient(protocolToUse+"//localhost:8080","DEMO");
44+
var lsClient = new LightstreamerClient(protocolToUse+"//localhost:8080","MESSENGER");
4545
```
4646
in js/lsClient.js file and change it accordingly.<br>
4747
Anyway the [SIMPLE_MESSENGER](https://github.com/Weswit/Lightstreamer-example-Messenger-adapter-java) and [IMMetadataAdapter](https://github.com/Weswit/Lightstreamer-example-Messenger-adapter-java) Adapters have to be deployed in your local Lightstreamer server instance. The factory configuration of Lightstreamer server already provides this adapter deployed.<br>

src/js/lsClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//////////////// Connect to current host (or localhost) and configure a StatusWidget
1818
define(["LightstreamerClient","StatusWidget"],function(LightstreamerClient,StatusWidget) {
1919
var protocolToUse = document.location.protocol != "file:" ? document.location.protocol : "http:";
20-
var lsClient = new LightstreamerClient(protocolToUse+"//localhost:8080","DEMO");
20+
var lsClient = new LightstreamerClient(protocolToUse+"//localhost:8080","MESSENGER");
2121

2222
lsClient.connectionSharing.enableSharing("DemoCommonConnection", "ATTACH", "CREATE");
2323
lsClient.addListener(new StatusWidget("left", "0px", true));

0 commit comments

Comments
 (0)