The server running LS Demo must have Domain?
Hi Mone,
Could you help me to confirm this quesiton? Thanks!
If I config Demo on server which has public IP address but no domain name,
how should I set domain and LSHost?
One important point: Someone will visit this Demo through internet.
I try to write web page like below, but it throw exception like "ER Bind Unable to find Engine..."
<script>
var lsPage = new PushPage();
lsPage.context.setDomain("55.55.55.55");
lsPage.onEngineCreation = function(engine) {
engine.connection.setLSHost("55.55.55.55");
engine.connection.setLSPort(8080);
engine.connection.setAdapterName("DEMO");
engine.changeStatus("STREAMING");
}
lsPage.bind();
</script>
Or
<script>
var lsPage = new PushPage();
lsPage.context.setDomain(null);
lsPage.onEngineCreation = function(engine) {
engine.connection.setLSHost("55.55.55.55");
engine.connection.setLSPort(8080);
engine.connection.setAdapterName("DEMO");
engine.changeStatus("STREAMING");
}
lsPage.bind();
</script>