fromWebSocket
Creates a WebSocket Subject with a given URL, protocol and an optional observer for the open event.
Arguments
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.
Returns
(Subject): A Subject which wraps a WebSocket.
Example
Last updated