-
Notifications
You must be signed in to change notification settings - Fork 512
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
WebSocket Support Tracker #2171
Comments
After reviewing the Netlify documentation, I found no suitable offering that will properly support websocket servers at this time.
|
Thanks for your investigation. Re Netlify, i have reached out and waiting for an answer if there is any viable current or future plans. |
Is websocket still not available in the current development mode of the latest nuxt? I try to access /websocket in development mode (pnpm run dev) and it's always connecting. If I compile and start with https://github.com/StringKe/report-nuxt-webscoket
|
@StringKe You need to use |
Are there plans to let us define which adapters Or is it possible to just import it manually and use it instead of |
|
does crossws have an API to proactively close connection? |
Does nuxt support websocket when deployed on cloudflare pages? Everything is fine on localhost, but on Cloudflare I'm getting only status finished |
Hello, I am trying to combine peer-server with my Nuxt application. Unfortunately, it doesn't work as expected. In the peer-server middleware, import { WebSocketServer as Server } from "ws";
const options: WebSocket.ServerOptions = {
path: this.path,
server,
};
this.socketServer = new Server(options);
this.socketServer.on("connection", (socket, req) => {
this._onSocketConnection(socket, req);
}); Currently, Nuxt is unable to listen for web socket connection events as expected |
Hi did u manage to get this fixed? |
Hi, @pi0 any updates on this from the netlify team? |
For netlify, you might use SSE (long polling) as much as know. @serhalp might give better answer if there is any plans for future WebSocket API. |
This should allow multi-core handling. https://nitro.unjs.io/deploy/runtimes/node It is not considered compatible with websockets. nitrojs/nitro#2171
Best test is if we build and then run 'npm run preview' to get production-like output. Test is failed: websockets not compatible with node-cluster mode, as expected by nitrojs/nitro#2171
👋🏼 I'm not aware of any plans to change Netlify's support for WebSockets. However, Server-Sent Events (SSE) work great with Netlify Edge Functions. |
@pi0 is there an example somewhere that instructs how to set up websockets with the When using the example from the docs, if I run locally in Nuxt (via I can see each I see the following note on the
but there are no instructions as to how to actually hook it up (here in the Nitro docs) to Cloudflare Durable Objects? If you can point me in the right direction I can also push up a PR for docs. Alternatively, if you have another (non-experimental) suggestion on how to implement similar messaging, I'd be open to try. |
Durable-ojbect support is on the progress (sorry for misleading docs, that section is not released yet) |
😅 Well I feel better that I couldn't get it working now. Tag me if I can help test/implement/document |
Hello, is there a way to access the event similar to defineEventHandler or eventHandler in Nuxt? I'm asking because I'm trying to retrieve a router parameter, and all server utility functions require the event parameter. |
A route parameter from the websocket route? what's your use case? |
I'm trying to create a proxy for Parse Server's LiveQueries and need to pass parameters to initialize the SDK and perform the necessary queries. I'm not sure if this is the best approach, as I'm just starting out with WebSockets. |
Yeah, if it possible, please: add possibility to read params from url. It's might be useful to authenticate user with one-time/signed token. Possible solution may be second (or first, ws still experimental feature anyway) argument to UPD: it's possible to parse params from
|
What about platforms not mentioned, (e.g. Azure) are they omitted for any reason? |
hey, currently i'm also facing the same issue, connections works pretty well in local dev |
Initial PR: #2170
Relavant docs:
Platform support
bun
cloudflare-pages
cloudflare-module
cloudflare
(worker)deno-deploy
deno-server
node-server
node
viawebsocket
exportnode-cluster
Needs investigation:
aws-lambda
netlify-edge
netlify-lambda
stormkit
vercel-lambda
vercel-edge
wnterjs
zerabur
The text was updated successfully, but these errors were encountered: