Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Does Portal support WebSockets (Subscriptions)?

Featured Replies

11 hours ago, FerventGeek said:

I'm looking at the Portal API in case I have to move away from MobiLink with a shift to IoP on Polisy. 

Does the UD Portal support REST subscriptions? https://wiki.universal-devices.com/index.php?title=ISY_Developers:API:REST_Interface#Subscriptions_(Web_Sockets)

Portal does not support websockets.

You can however get a subscription using a web service. You have to make a POST /services (using preferred ISY) or POST /<isyKey>/services

This should get you started:

const customHeader = { SOAPACTION : '"urn:udi-com:service:X_Insteon_Lighting_Service:1#Subscribe"' }
const body = new Buffer.from('<s:Envelope><s:Body><u:Subscribe xmlns:u="urn:udi-com:service:X_Insteon_Lighting_Service:1"><reportURL></reportURL><duration>infinite</duration></u:Subscribe></s:Body></s:Envelope>')

 

Benoit

 

 

 

 

  • Author
1 hour ago, bmercier said:

Portal does not support websockets.

You can however get a subscription using a web service. You have to make a POST /services (using preferred ISY) or POST /<isyKey>/services

This should get you started:

const customHeader = { SOAPACTION : '"urn:udi-com:service:X_Insteon_Lighting_Service:1#Subscribe"' }
const body = new Buffer.from('<s:Envelope><s:Body><u:Subscribe xmlns:u="urn:udi-com:service:X_Insteon_Lighting_Service:1"><reportURL></reportURL><duration>infinite</duration></u:Subscribe></s:Body></s:Envelope>')

Thanks. I already built something like that- golang subscriber pushing to AWS SNS. Still hoping it will eventually be built into a portal. The old SOAP wrappers have all the magic.

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.