Okay it's this:
When you refreshed the page and sent a message at the initial channel the url is referring to, you can have instant messaging. But things go weird when you switch to another server/channel without refreshing. With websocket connection, you still can't get instant messages