derp
Try only loading websockets after the gate data is loaded
put the callback in the right place
fix global websocket var so we can send shit