poc-go-svelte-websockets is a proof of concept using websockets with a Go backend and a Svelte/Typescript frontend.
make build
./poc-go-svelte-websockets
Then, go to http://localhost:9000
.
❯ ./poc-go-svelte-websockets -h
Usage of ./poc-go-svelte-websockets:
-cors
enable CORS for dev
-port string
change :port or ip:port (default ":9000")
-version
print poc-go-svelte-websockets version
github.com/gorilla/websocket