Last active
May 3, 2021 13:17
-
-
Save weihungchin/192910c1ddedef1f72cfdd41eaaff4af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { webSocket } from 'rxjs/webSocket'; | |
const wsSubject$ = webSocket('wss://www.gasnow.org/ws/gasprice'); | |
// or | |
const wsSubjec2$ = webSocket({ | |
url: 'wss://www.gasnow.org/ws/gasprice' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment