Previous Topic

Next Topic

Book Contents

Book Index

Configuring the Bosch IoT Gateway Software WebSockets Server (deprecated)

The Bosch IoT Gateway Software WebSockets Server is configured by the OSGi Configuration. In the WebSockets Server Configuration you will find the following options:

DemoWebSocketApplication.java:

public class DemoWebSocketApplication  extends WebSocketApplication {
  .
  .
  .

   // return  the maximum webSocket connections you wish to allow
   // by default this  method returns -1, which indicates
   // that you are going to use the number set in the
   // Web Sockets Server Configuration
public int maxAllowedWebSocketConnections() {
     return 5;
  }
  
  .
  .
  .
}

DemoWebSocketApplication.java:

public class DemoWebSocketApplication  extends WebSocketApplication {
  .
  .
  .

   // return true if  you wish to disable SystemPing
// by default this  method returns  false , which indicates
// that you are going to use the System  Ping
public boolean notUsingSystemPing() {
     return true;
  }
  
  .
  .
  .
}