diff --git a/rest-to-websocket/FrontendApp.js b/rest-to-websocket/FrontendApp.js index a3c6e4d0..a169ad8d 100644 --- a/rest-to-websocket/FrontendApp.js +++ b/rest-to-websocket/FrontendApp.js @@ -33,7 +33,7 @@ class FrontendApp { const thingId = this.config.thingId; const connectionConfig = this.connectionConfigFunction(); - this.baseUrl = `http://${connectionConfig.getHost()}/api/1/things/${thingId}`; + this.baseUrl = `http://${connectionConfig.getHost()}/api/2/things/${thingId}`; const basicAuth = btoa(`${connectionConfig.getUsername()}:${connectionConfig.getPassword()}`); $.ajaxSetup({ diff --git a/rest-to-websocket/SmartCoffeeApp.js b/rest-to-websocket/SmartCoffeeApp.js index ed9499a3..a5dd223b 100644 --- a/rest-to-websocket/SmartCoffeeApp.js +++ b/rest-to-websocket/SmartCoffeeApp.js @@ -312,7 +312,7 @@ class DittoWebSocket { } connect(connectionConfig, callback) { - const baseUrl = `ws://${connectionConfig.getUsername()}:${connectionConfig.getPassword()}@${connectionConfig.getHost()}/ws/1`; + const baseUrl = `ws://${connectionConfig.getUsername()}:${connectionConfig.getPassword()}@${connectionConfig.getHost()}/ws/2`; this.ws = new WebSocket(baseUrl); this.ws.onopen = () => this.onOpen(callback); }