Upgraded gradle to newest version, included new socketio library, made structural changes.
Made websocket connection with server possible.