Skip to content

WebSocketSubject not applying operators #1745

@fingermark

Description

@fingermark

RxJS version:
5.0.0-beta.8

Code to reproduce:

http://jsbin.com/kidawe/edit?js,console

const url = 'ws://ws.websocketstest.com:80/service';

Rx.Observable
  .webSocket({
    url: url,
    resultSelector: (e) => e.data
  })
  .map((x) => 'prefix-' + x)
  .map(x => x)
  .subscribe((x) => console.log(x));

Expected behavior:

prefix-connected,

Actual behavior:

connected,

Additional information:

I ran into an issue where I was trying to map on Observable.webSocket and noticed the maps weren't getting invoked. Others have confirmed the bug. See more here:

redux-observable/redux-observable#42

Metadata

Metadata

Assignees

Labels

bugConfirmed bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions