rxpoweredup
Version:
A Typescript RxJS-based library for controlling LEGO Powered UP hubs & peripherals.
11 lines (10 loc) • 665 B
JavaScript
import { CHARACTERISTIC_DATA_STREAM_FACTORY, OUTBOUND_MESSAGE_FACTORY } from '../hub';
import { CharacteristicDataStreamFactory } from './characteristic-data-stream-factory';
import { OutboundMessengerFactory } from './outbound-messenger';
import { ChannelFactory, LinuxChromeChannelFactory } from './outbound-messenger/channel';
export function registerMessengerServices(container) {
container.registerSingleton(LinuxChromeChannelFactory);
container.registerSingleton(ChannelFactory);
container.register(CHARACTERISTIC_DATA_STREAM_FACTORY, CharacteristicDataStreamFactory);
container.register(OUTBOUND_MESSAGE_FACTORY, OutboundMessengerFactory);
}