improved #connect and #disconnect in WebSocketAPI