michaeljb/Goko-Salvager — pull request #24 by aiannacc (2013-08-07 20:46:26+00:00)
Title: Automatch over SSL and more

Switched to secure web sockets connecting at andrewiannaccone.com. It's the same server, but I actually own this domain, unlike drunkensailor.org, so I was able to get an SSL certificate for it.

Other Automatch changes:
- Reduced use of loops in favor of event notifications
- Detects disconnects from the automatch server and reconnects automatically
- Handles game starts correctly, clearing outstanding seeks/offers and notifying server
- Host now passes game info to server, which relays it to opponents

Many other refactors and small fixes, mostly to improve robustness and eliminate potential race conditions.

Tested in Firefox under Windows and Archlinux. Not tested in Safari or Chrome.