[fix] support for browser websocket