Last active
June 22, 2024 09:04
-
-
Save Sawtaytoes/fe3d16b1a15aa20eef5d2a41d0b39934 to your computer and use it in GitHub Desktop.
This file contains 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
const WebSocket = require('ws') | |
const { webSocket } = require('rxjs/webSocket') | |
const webSocketConnection$ = ( | |
webSocket({ | |
protocol: 'v1', | |
url: 'http://example.com:3000', | |
WebSocketCtor: WebSocket, | |
}) | |
) | |
module.exports = webSocketConnection$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment