code: function CoapDiscoveryServer(app) {
    if (!app.properties[SERVER.Capabilities][DEVICESMIDDLEWARE.CAPABILITY])
      throw ("Missing Dependency: IOPA DEVICES Server/Middleware in Pipeline");
  
    app.properties[SERVER.Capabilities][THISMIDDLEWARE.CAPABILITY] = {};
    app.properties[SERVER.Capabilities][THISMIDDLEWARE.CAPABILITY][SERVER.Version] = packageVersion;
  
   //Also register as standard IOPA PUB/SUB SUBSCRIBE MIDDLEWARE
    app.properties[SERVER.Capabilities][IOPA.CAPABILITIES.Subscribe] = {};
    app.properties[SERVER.Capabilities][IOPA.CAPABILITIES.Subscribe][SERVER.Version] = app.properties[SERVER.Capabilities][IOPA.CAPABILITIES.App][SERVER.Version];
  
    this.app = app;
   }
docs: CoAP IOPA Middleware for Managing Server Sessions including Auto Subscribing Client Subscribe Requests
  
  @class CoAPSubscriptionClient
  @this app.properties  the IOPA AppBuilder Properties Dictionary, used to add server.capabilities
  @constructor
  @public