Skip to content

Socketio Messages #14

@matteosuppo

Description

@matteosuppo

We are using http://socket.io/ but only for its reconnections.

We could leverage the concept of events in order to have a clearer API.

For example:

Event from the client Arguments
CmdDiscover
CmdOpen {port: "", baud: ""}
CmdClose {port: ""}
CmdSend {port: "", data: ""}
CmdDownload {tool: "", version: ""}
CmdTools
CmdInterrupt
Event from the agent Arguments
DiscoverSerial []array of boards
DiscoverNetwork []array of boards
ProgramOutput {msg: "", type: "debug"}
ProgramSuccess {msg: ""}
ProgramError {msg: "", err: ""}
DownloadOutput {msg: "", type: "debug"}
DownloadSuccess {msg: ""}
DownloadError {msg: "", err: ""}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions