defer on_open to EM.next_tick. fixes #135
Merge pull request #137 from moaa/master

defer on_open to EM.next_tick. fixes #135
use wss in https, use http in other protocols
Merge pull request #141 from markee/check-https-first

use wss in https, use http in other protocols