Skip to content

Conversation

IOTeule
Copy link

@IOTeule IOTeule commented Jan 18, 2022

No description provided.

publishEvent(ClientEvent::DISCONNECTED, disconnectionMessage);
return;
} else {
receivedMessage[numOfBytesReceived] = '\0';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR. This might solve the issue, but I think it should be done differently. The numOfBytesReceived should be published along with the receivedMessage on the next line of code. This provides greater flexibility for the end-user.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants