Skip to content

Don't throw error when closing socket#3

Description

@ledge74

Hi,

First I got phea working and it's awesome, thank you for making it 馃槂

I'm building an API that will be able start / stop entertainment sync. However, Phea throws an error when I'm closing a stream using phea.stop().

Is there any particular reason I'm not understanding for throwing an error when stopping a stream ?

Related code is the following

.on("close", () => {
let msg = new Error("PHEA - DTLS: Socket Closed");
msg.code = 'PHEA.HUE_DTLS_CONTROLLER.SOCKET_CLOSED';
throw msg;
});

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions