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