Skip to content

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

License

Notifications You must be signed in to change notification settings

jraedisch/go_sse_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :)

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published