I'm trying to find out what the difference is between `websocket.mtgox.com` and `socketio.mtgox.com` for the [MtGox streaming API](https://en.bitcoin.it/wiki/MtGox/API/Streaming). Looking at the [Connecting section](https://en.bitcoin.it/wiki/MtGox/API/Streaming#Connecting) it looks like there are several combinations to be used:

```
websocket.mtgox.com/mtgox
socketio.mtgox.com/mtgox

```

both with *http* or *https.*

As far as I can see, there is no mention that they are different, however, I know from trying out things myself that they do behave differently. I've also seen in forums that other people have similar questions/problems as I have related to this.

Does anyone know what the differences are? Also are these differences expected and documented somewhere?

Further, the code snippet uses https as the protocol. Excuse my ignorance, but shouldn't we use *ws* or *wss* instead of *http* and *https*? Can someone explain that difference?

Thanks in advance for any information related to my questions!

**UPDATE:**
Actually, it looks like the [URI scheme for websockets](http://en.wikipedia.org/wiki/WebSocket#URI_scheme) should be ws: or wss: and not like in the example http: or https:. Maybe this is a typo in the example or what's the deal for MtGox?

**UPDATE:**
So [testing things in the browser](https://gist.github.com/murrekatt/5526153), `{ws,wss,http,https}://socketio.mtgox.com/mtgox` all work and I don't see any difference. On the other hand, `{ws,wss,http,https}://websocket.mtgox.com/mtgox` all result in HTTP 400 Bad Request. Looking in the browser console I got the following error:

```
XMLHttpRequest cannot load http://websocket.mtgox.com/socket.io/1/?t=1367857246057. Origin null is not allowed by Access-Control-Allow-Origin.

```

Any ideas what might be going on?