support websocket on mac