From 4d9300bb0216b88e6ad246413d951439151cfe73 Mon Sep 17 00:00:00 2001 From: Jason Staten Date: Thu, 20 Sep 2018 16:34:59 -0600 Subject: [PATCH] update promise notes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d947e68..fb4b6ad 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ rpc ## JsonRpc Options - `origin` - (Default: `*`) Origin to send messages -- `methods` - (Default: `{}`) An object of exposed methods +- `methods` - (Default: `{}`) An object of exposed methods. Returning a Promise will defer responding until the promise has completed - `source` - The source EventTarget to mount JSON rpc on (`Window`, `MessagePort`, etc) - `destination` - Target MessageEventSource to send requests to