Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jkarneges committed Jul 19, 2018
1 parent 9a05a73 commit 3a59c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -67,7 +67,7 @@ var ws = faasGrip.lambdaGetWebSocket(event);
When using Fly, call `getWebSocket` with the incoming `Request` and it'll return a `WebSocketContext` object:

```js
var ws = await faasGrip.getWebSocket(event);
var ws = await faasGrip.getWebSocket(event.request);
```

Note that unlike `lambdaGetWebSocket`, the `getWebSocket` function returns a promise (which you can await on in order to handle).
Expand Down

0 comments on commit 3a59c2e

Please sign in to comment.