Skip to content

Handle error event separate from data event. #10

@joshuamarquez

Description

@joshuamarquez

Internally 'error' event is handled together with 'data' event, this should not be this way, we should check if event is of error type and then proceed to error listeners setup.

// Scope: ServiceEmitter constructor.
if (event === 'error') {
  // Do error event handling here...
}

Metadata

Metadata

Assignees

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