Recieve JSON from client over websockets