Skip to content

QS websocket msg parsing breaks #54

Description

@SeijDeLeon

if (eventData.msg.startsWith('[')) {

This can break depending on the message sent over. Need to do some type checks before calling methods on it.

error:

Uncaught TypeError: eventData.msg.startsWith is not a function
    at QSConsole.tsx:64:35
    at basicStateReducer (chunk-PNGJSGSD.js?v=0e3f696c:11751:49)
    at updateReducer (chunk-PNGJSGSD.js?v=0e3f696c:11842:30)
    at updateState (chunk-PNGJSGSD.js?v=0e3f696c:12069:18)
    at Object.useState (chunk-PNGJSGSD.js?v=0e3f696c:12801:24)
    at useState (chunk-3TFVT2CW.js?v=0e3f696c:1066:29)
    at QSConsole (QSConsole.tsx:20:41)

This occured while running ophyd-websocket version 0.1.1 from pypi

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