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

socket.io example #2929

Closed
pahaz opened this issue May 8, 2020 · 4 comments
Closed

socket.io example #2929

pahaz opened this issue May 8, 2020 · 4 comments

Comments

@pahaz
Copy link
Contributor

pahaz commented May 8, 2020

Feature request

At the moment the Keystone doesn't have examples for an HTTP server customization like socket.io. There is only configureExpress hook but it's useless for the HTTP customization like socket.io.

What should I do if I need to customize the HTTP server?

@jesstelford
Copy link
Contributor

We allow you to fully customise your server, as long as you're able to consume the express middleware Keystone provides: https://keystonejs.com/guides/custom-server

@pahaz
Copy link
Contributor Author

pahaz commented May 10, 2020

Yes, you can, but it not the same as just define configureExpress

@jesstelford
Copy link
Contributor

I'm not sure I understand. configureExpress just passes you the express app for you to do what you need. At that point you can do pretty much anything like attaching new routes or middleware.

If you need more customisation, I linked to the docs which show a bunch of examples of how to build a fully custom server.

@bonniss
Copy link

bonniss commented Jun 20, 2021

@pahaz it's been a while, have you got any solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants