Replace websocket code with leapjs lib