Skip to content

Commit

Permalink
sdk/server: add mechanism for requesting device refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jan 1, 2024
1 parent 563e16b commit a526816
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"description": "",
"dependencies": {
"@mapbox/node-pre-gyp": "^1.0.11",
"@scrypted/types": "^0.3.3",
"@scrypted/types": "^0.3.4",
"adm-zip": "^0.5.10",
"body-parser": "^1.20.2",
"cookie-parser": "^1.4.6",
"debug": "^4.3.4",
"engine.io": "^6.5.4",
"express": "^4.18.2",
"ffmpeg-static": "^5.2.0",
"follow-redirects": "^1.15.3",
"follow-redirects": "^1.15.4",
"http-auth": "^4.2.0",
"ip": "^1.1.8",
"level": "^8.0.0",
Expand Down
2 changes: 1 addition & 1 deletion server/src/plugin/plugin-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class PluginHost {
// do this on next tick, after this call has returned an id, so the plugin can handle
// any subsequent requests.
process.nextTick(async () => {
let needInvalidate = interfacesChanged;
let needInvalidate = interfacesChanged || upsert.refresh;
if (!needInvalidate) {
// may also need to invalidate if the the plugin did not previously return a device
// because it had not yet completed the discovery process.
Expand Down

0 comments on commit a526816

Please sign in to comment.