-
Notifications
You must be signed in to change notification settings - Fork 375
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 #1384
base: main
Are you sure you want to change the base?
WebSocket Support #1384
Conversation
|
This is interesting. I have to admit I haven't thought much about this at all. Like what the ideal abstraction is?, how to expose it etc?.. I see this is a dedicated router which seems reasonable, but I'm going to need some more feedback to know what expectations are here. I don't know if @nksaraf has any thoughts. Might look at bringing this in as an experimental feature at first given us trying to lock down for 1.0. |
ws endpoint could be include without modify solid-start package, with the help of new release of vinxi. solidjs/solid-docs#760 import { defineConfig } from "@solidjs/start/config";
export default defineConfig({
server: {
experimental: {
websocket: true,
},
},
}).addRouter({
name: "party",
type: "http",
handler: "./src/ws.ts",
target: "server",
base: "/ws",
}); |
Co-authored-by: chee <[email protected]>
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
Other information