Skip to content

Commit f0cb232

Browse files
committed
readme
1 parent 9093389 commit f0cb232

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,21 @@ app.listen({ port: 4000 });
158158
console.log('Listening to port 4000');
159159
```
160160

161+
##### With [`uWebSockets.js`](https://github.com/uNetworking/uWebSockets.js)
162+
163+
```js
164+
import uWS from 'uWebSockets.js'; // yarn add uWebSockets.js@uNetworking/uWebSockets.js#<version>
165+
import { createHandler } from 'graphql-http/lib/use/uWebSockets';
166+
import { schema } from './previous-step';
167+
168+
uWS
169+
.App()
170+
.any('/graphql', createHandler({ schema }))
171+
.listen(4000, () => {
172+
console.log('Listening to port 4000');
173+
});
174+
```
175+
161176
##### With [`Deno`](https://deno.land/)
162177

163178
```ts

0 commit comments

Comments
 (0)