Skip to content

Mock device websocket for storybook #23

@SeijDeLeon

Description

@SeijDeLeon

Various beamline device controller components and live plot monitors rely on ophyd websocket for functionality. If we put the components in storybook without a mock device then there is no functionality and it will default to a 'device not connected' view.

Add a custom hook that recreates the functionality of useOphydSocket with pure js so components can be instantiated with it and then rendered to storybook.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions