Fix SSL issue of web socket