I have a subject that wraps a WebSocket (https://github.com/Reactive-Extensions/RxJS-DOM/blob/master/doc/operators/fromwebsocket.md) and I want to buffer messages received by the WebSocket. I've looked at https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/buffer.md but an observable is used instead of a subject. Also, I've read that subjects can be used to use buffering or caching "You can use subjects to implement a custom observable with caching, buffering and time shifting" (https://xgrommx.github.io/rx-book/content/getting_started_with_rxjs/subjects.html), how can I use the subject and observers to implement that sort of things (buffering, caching, ...).
I'm a little bit los with the concepts of Rx, they are more difficult than akka-streams!!
Thanks,