fromWebSocket
Last updated
Was this helpful?
Last updated
Was this helpful?
[Ⓣ][1]
Creates a WebSocket Subject with a given URL, protocol and an optional observer for the open event.
url
(String): The URL of the WebSocket.
protocol
(String): The protocol of the WebSocket.
[observerOrOnNext]
(Rx.Observer|Function): An optional Observer or onNext function to capture the open event.
(Subject): A Subject which wraps a WebSocket.