benjamin-rood / abm-cp

A Predator-Prey Agent Based Model of prey colour polymorphism (CP) in Go
MIT License
7 stars 1 forks source link

Fix websocket: close 1005 close loop #1

Closed ghost closed 8 years ago

ghost commented 8 years ago

Close on all errors to prevent "websocket: close 1005" loop.

benjamin-rood commented 8 years ago

Hi, thanks for wanting to help, indeed I have found that bug and it is fixed in the 'dev' branch.

benjamin-rood commented 8 years ago

Thank you for alerting me!

I will do so, I am going to merge dev with master today, even with that caveat. In time, once I have all features in place I will be in a place to switch back to gorilla/websocket – but the interfaces of the x/net/websocket package were much more simple for me to come to grips with. Until the beginning of the year I had never done anything with web development let alone websockets before. This is my way of teaching myself!