Skip to content

appcrafts/websockets-wasp

 
 

Repository files navigation

Using Websockets in Wasp

This is an example real-time, Websockets app built with Wasp in TypeScript to showcase the ease of use and integration of Websockets in Wasp. It's really NEAT!

wasp websockets app

This app also includes Wasp's integrated auth and a voting system (again, neat!).

Running the app

If you get stuck at any point, feel free to join our Discord server and ask questions there. We are happy to help!

Download and install Wasp

curl -sSL https://get.wasp-lang.dev/installer.sh | sh

Clone this repo...

git clone https://github.com/vincanger/websockets-wasp.git

....and navigate to the project directory

cd websockets-wasp
wasp db migrate-dev

start the app! (this also installs all dependencies)

wasp start

Check out the src/server/websocket.ts and src/client/pages/MainPage.tsx to see how Websockets are used in Wasp.

Need Help?

Wasp Docs: https://wasp-lang.dev/docs

Feel free to join our Discord server and ask questions there. We are happy to help!

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 63.1%
  • JavaScript 36.2%
  • CSS 0.7%