WaspW
Wasp•2y ago
JLegendz

websocket definition?

I've been trying to follow along with https://wasp-lang.dev/blog/2023/08/09/build-real-time-voting-app-websockets-react-typescript and https://wasp-lang.dev/docs/advanced/web-sockets to get websockets working with the open-saas demo app template.

When I attempt to use

import { WebSocketDefinition } from '@wasp/webSocket';


in my app/src/server/ws-server.ts file, it's not able to find wasp/websocket. I searched and it doesn't appear to exist but I'm hoping I'm wrong.

Are websockets setup to work on the open saas template?
Wasp provides a fully integrated WebSocket experience by utilizing Socket.IO on the client and server.
Was this page helpful?