Skip to content

Apply async functionality to client library #25

@barabo

Description

@barabo
  • swm.sendMessage('customEHR.watchClicks', {...payload}) - handle a stream of responses via generator
  • swm.createClient - creates a client object using the messaging handle and target origin
  • client.sendMessage('status.handshake') - or any other known types. returns a promise.
  • client.sendResponseTo(message) - reads the messageId and sets responseToMessageId
  • use new client in app and ehr
  • swm.discover() - returns library details

Metadata

Metadata

Assignees

Labels

libIssue affecting only the client library code.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions