Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Use uWebSockets.js #91

Merged
merged 9 commits into from
Jun 1, 2023
Merged

feat: Use uWebSockets.js #91

merged 9 commits into from
Jun 1, 2023

Conversation

enisdenjo
Copy link
Member

@enisdenjo enisdenjo commented Jun 1, 2023

Start the server with uWebSockets.js

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');
  });

@enisdenjo enisdenjo marked this pull request as ready for review June 1, 2023 13:49
@enisdenjo enisdenjo merged commit 5089f46 into main Jun 1, 2023
@enisdenjo enisdenjo deleted the uws branch June 1, 2023 13:56
enisdenjo pushed a commit that referenced this pull request Jun 5, 2023
# [1.19.0](v1.18.0...v1.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](d08ead3))

### Features

* Use uWebSockets.js ([#91](#91)) ([5089f46](5089f46))
@enisdenjo
Copy link
Member Author

🎉 This PR is included in version 1.19.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@enisdenjo enisdenjo added the released Has been released and published label Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Has been released and published
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant