#! /usr/bin/env python
from autobahn.twisted.component import Component, run

from hcam_devices.components import NGCComponent

transport_cfg = dict(
    type='websocket',
    url='ws://localhost:8080/ws',
    max_retries=-1,
    max_retry_delay=30,
)


ngc = Component(
    transports=transport_cfg, realm='realm1', session_factory=NGCComponent,
    extra=dict(name='NGC', emulate=True)
)

run([ngc])
