浅淡 RxJS WebSocket

const open$ = new Subject(); const ws = webSocket({ url: 'wss://echo.websocket.org', openObserver: open$ }); // 订阅打开事件 open$.subscribe(() => {});

// An highlighted block
var foo = 'bar';
posted @ 2018-10-06 18:01 sfornt 阅读(...) 评论(...) 编辑 收藏