You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
596 B
17 lines
596 B
import { ObservableResource } from 'observable-hooks';
|
|
import { Subject } from 'rxjs';
|
|
|
|
import type { Protobuf, Types } from '@meshtastic/meshtasticjs';
|
|
|
|
export const preferencesSubject$ =
|
|
new Subject<Protobuf.RadioConfig_UserPreferences>();
|
|
|
|
export const preferencesResource = new ObservableResource(preferencesSubject$);
|
|
|
|
export const nodeSubject$ = new Subject<Types.NodeInfoPacket>();
|
|
|
|
export const nodeResource = new ObservableResource(nodeSubject$);
|
|
|
|
export const channelSubject$ = new Subject<Protobuf.Channel>();
|
|
|
|
export const channelResource = new ObservableResource(channelSubject$);
|
|
|