update websocket-stream
use connect event to detect successful connection