Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.13 KB

README.md

File metadata and controls

29 lines (24 loc) · 1.13 KB

About

This is a simple example of proxying Server-Sent Events via Caddy proxy to a GopherJS front end.

Setup

Misc

  • There is no hot reloading, but GopherJS will watch for file changes. Changes to webapp.go require a restart.
  • Do not vendor GopherJS, since it will result in hard to decipher bugs. See gopherjs/gopherjs#415.
  • For live deployment you need to provide a separate Caddyfile, that could be much simpler. See https://caddyserver.com/docs/getting-started.
  • Production ready projects should probably add some specs :)