Documentation / @etherfold/browser / listen
Function: listen() ​
listen(
endpoint,onMessage): () =>void
Defined in: packages/browser/src/host/endpoint.ts:92
Attach a message listener, starting the endpoint where that is needed. Returns the detach.
Parameters ​
endpoint ​
onMessage ​
(data) => void
Returns ​
() => void