Skip to content

Commit

Permalink
fixup! feat!: add proposal for new discovery API
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Nov 21, 2023
1 parent 44af619 commit 495b857
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/wot-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,18 @@ export default class WoTImpl {
this.srv = srv;
}

/** @inheritDoc */
async discover(filter?: WoT.ThingFilter): Promise<WoT.ThingDiscoveryProcess> {
// TODO: Implement this function
return new ThingDiscoveryProcess(filter);
}

/** @inheritDoc */
async *exploreDirectory(url: string, filter?: WoT.ThingFilter): AsyncGenerator<ThingDiscoveryProcess> {
yield Promise.reject(new Error("Unimplemented"));
}

/** @inheritDoc */
async requestThingDescription(url: string): Promise<ThingDescription> {
const uriScheme = new URL(url).protocol.split(":")[0];
const client = this.srv.getClientFor(uriScheme);
Expand Down

0 comments on commit 495b857

Please sign in to comment.