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
Server Side Event is Not Working
i am using express-sse (https://www.npmjs.com/package/express-sse) for server side event server , i point to /stream as an endpoint to SSE
var SSE = require('express-sse'); var sse = new SSE(["array", "containing", "initial", "content", "(optional)"]); nxt.prepare() .then(() => { app.get('/stream', sse.init); })
and in the client side
componentDidMount() { this.source = new EventSource('/stream') this.source.onmessage = function(e) { console.log(e) } }
I able to Successully connected to (SSE) server by when i emit from server side, i am not able to get from client side
A clear and concise description of what the bug is.
Steps to reproduce the behavior, please provide code snippets or a repository: Create blank nextjs project and install express and express-sse
in the server.js Create sse endpoint
and in index.js (Client)
i added console.log it was not printing, i am hitting from the server
The text was updated successfully, but these errors were encountered:
This does not relate to Next.js / Is not a bug in Next.js.
Sorry, something went wrong.
No branches or pull requests
Bug report
Server Side Event is Not Working
Describe the bug
i am using express-sse (https://www.npmjs.com/package/express-sse) for server side event server , i point to /stream as an endpoint to SSE
and in the client side
I able to Successully connected to (SSE) server by when i emit from server side, i am not able to get from client side
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Create blank nextjs project and install express and express-sse
in the server.js Create sse endpoint
and in index.js (Client)
Expected behavior
i added console.log it was not printing, i am hitting from the server
System information
The text was updated successfully, but these errors were encountered: