Add Websocket support for Mac platform