Use ws for http, wss for https

Looks like we're actually going to need this