Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Send binary Brackets-Node command responses #406

Merged
merged 1 commit into from
Jan 9, 2014

Conversation

iwehrman
Copy link
Contributor

This pull request updates the Brackets-Node ConnectionManager so that it can send binary responses to commands in Node domains without additional encoding.

When a command responds with an object that is an instance of a Node Buffer, the ConnectionManager assumes that the response should be sent via the WebSocket using a binary message. To do so, it encodes the (32-bit unsigned integer) command ID as a four-byte header, which is prepended to the command's result Buffer as the final response message.

For now, the only binary messages that can be sent are of type "commandResponse".

This should be reviewed in tandem with a companion brackets pull request, adobe/brackets#6339, which updates NodeConnection to receive these binary command responses.

@jasonsanjose
Copy link
Member

Reviewed. Merging.

jasonsanjose added a commit that referenced this pull request Jan 9, 2014
Send binary Brackets-Node command responses
@jasonsanjose jasonsanjose merged commit 3f0d224 into master Jan 9, 2014
jasonsanjose added a commit that referenced this pull request Dec 8, 2015
Send binary Brackets-Node command responses
@marcelgerber marcelgerber deleted the iwehrman/binary-node-commands branch May 23, 2016 08:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants