Stephen Chung

Results 552 comments of Stephen Chung

From what I can tell, `Teaclave` has a _solver_ engine (or inference engine), which is one step up from a rules engine. A solver engine does back-tracking to try different...

I am successful with first installing LLVM for Windows from https://releases.llvm.org/download.html, making sure that `C:\Program Files\LLVM\bin` is in `PATH`, then adding `linker = "rust-lld"` in my `.cargo/config`. I cross-compiled a...

@moscoquera, I'm pretty sure you _can't_ do it this way. Angular 2 switched to UMD modules since RC. Before, all the bundles were wrapped in `System.register` calls so you can...

I'm also wondering what the purpose of the send queue is... it looks like you're trying to keep messages through disconnections of the websocket. However, most browsers' WebSocket implementation already...

OK, I see it now. You're establishing new WebSocket connections when reconnecting. That explains your usage of the send queue, but I'm afraid it still may not help you much......

After a bit more thought and poking around, I realize that Angular 2's own HTTP module also returns cold observables. For example, `http.get` returns a cold observable, and requires a...

`sendRaw` can be very simple: ``` .ts sendRaw(data) { if (this.getReadyState() !== this.readyStateConstants.OPEN && this.getReadyState() !== this.readyStateConstants.CONNECTING) { this.connect(); } this.sendQueue.push({ message: data }); this.fireQueue(); }; ```

@jmparra, `WebSocket.send` does not return a handle. It is fire-and-forget AFAIK. There is no reason for the `send` to return anything to observe. This is in direct contrast to `Http.send`...

Well, the current `angular2-websocket.js` is in AMD format. Angular 2 switched to UMD's, so it needs certain processing if not packed with a bundler. For example, I do my packaging...

Yes, SystemJS can take AMD modules. That's why. Angular 2 has removed dependencies on SystemJS and should now, theoretically, work with any module loader. That's the reason behind the switch...