next-plugin-websocket icon indicating copy to clipboard operation
next-plugin-websocket copied to clipboard

Add WebSocket support to Next.js API routes

Results 5 next-plugin-websocket issues
Sort by recently updated
recently updated
newest added

yarn run v1.22.19 $ next D:\Dev\nextjs_ws_apollo\node_modules\next\dist\build\utils.js:1 "httpServer: server, ^^^^^^^^^^^^^^^^^^^^ SyntaxError: Invalid or unexpected token at internalCompileFunction (node:internal/vm:73:18) at wrapSafe (node:internal/modules/cjs/loader:1176:20) at Module._compile (node:internal/modules/cjs/loader:1218:27) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) at...

Expected working example: ```TSX import { NextApiHandler } from "next"; import { NextWebSocketHandler } from "next-plugin-websocket"; export const socket: NextWebSocketHandler = (client, req) => { console.log("Client connected"); client.on("message", (msg) =>...

Fixes #4 `ensureApiPage` was removed in `v13.1.7-canary.14` https://github.com/vercel/next.js/pull/45716/files#diff-2f6fd5a9538abfaf3d5b76a82a8d1ffa029f84a36f0cdae5460520c5cfc2db6bL1402

Hello please could you provide to me a complete example ( client / api) ? thanks in advance Joseph

can I deploy trpc with this package adding websocket ability to vercel? or I have to deploy to somewhere else?