Websocket connection issues

I have HA installed using resin.io but for some reason I cannot connect to the websocket. When I try to open the connection I get the following error:

Connection error: Error: reserved fields (2, 3) must be empty

I’m not sure what this means and can’t seem to find any solution when googling it. Does anyone have any idea what it might be?