Fixed some issues with the lack of non blocking websockets. (Likely needs debugging)