1.19.0 (2023-06-05)
Bug Fixes
- use:
process
global is not available in all environments and NODE_ENV
doesn't necessarily depict production vs. development (d08ead3)
Features
Examples
import uWS from 'uWebSockets.js'; // yarn add uWebSockets.js@uNetworking/uWebSockets.js#<version>
import { createHandler } from 'graphql-http/lib/use/uWebSockets';
import { schema } from './my-graphql-schema';
uWS
.App()
.any('/graphql', createHandler({ schema }))
.listen(4000, () => {
console.log('Listening to port 4000');
});