Skip to content

Commit

Permalink
oops, not creating ws
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Holmes committed Jan 2, 2024
1 parent 0bd8708 commit fd5c319
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.0.158",
"version": "0.0.159",
"repository": {
"type": "git",
"url": "https://github.com/btrauma8/jrad-tools"
Expand Down
3 changes: 3 additions & 0 deletions src/cfd/rt3-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ export class RealTimerClient {
params:any={},
modifyFn?:(x:any) => Msg|null|undefined
):Observable<ChannelState<Msg>> {

if (!this.ws) this.createNewWebSocket();

const channel = this.channels.get(channelId);
if (channel) return channel.state.asObservable() as Observable<ChannelState<Msg>>;
console.log('RT listening for channel', channelId);
Expand Down

0 comments on commit fd5c319

Please sign in to comment.