We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Any way to support http2 protocol?
Thanks. Diego
The text was updated successfully, but these errors were encountered:
Not possible until these issues are fixed in node: https://stackoverflow.com/questions/50819872/using-nodejs-10-http2-and-express-crashes expressjs/express#3388 nodejs/node#14672
Sorry, something went wrong.
I have it working with this code:
const jsonServer = require('json-server');` const server = jsonServer.create(); const spdy = require('spdy'); const port = 8080; spdy.createServer({ key: fs.readFileSync(__dirname + '/localhost.key'), cert: fs.readFileSync(__dirname + '/localhost.crt') }, server).listen(port, (error) => { if (error) { console.error(error); } else { console.log(`JSON Server is running on port ${port}`); } });
Versions: "json-server": "^0.16.1" "spdy": "^4.0.2"
"json-server": "^0.16.1"
"spdy": "^4.0.2"
No branches or pull requests
Any way to support http2 protocol?
Thanks.
Diego
The text was updated successfully, but these errors were encountered: