I think I might need to resort to C to get a websocket working.