josephspurrier / gowebapp

Basic MVC Web Application in Go
MIT License
1.14k stars 197 forks source link

How to route websockets? #22

Closed k0fi closed 7 years ago

k0fi commented 7 years ago

Hi Joseph Can you please provide a minimal example of handling websockets in the route.go?

josephspurrier commented 7 years ago

Take a look at Gorilla to see how they do it in a generic web application: https://github.com/gorilla/websocket/tree/master/examples/chat