cloudfoundry-community / java-nats

NATS Client for Java
Apache License 2.0
51 stars 33 forks source link

Empty messages result in exception #7

Closed mheath closed 12 years ago

mheath commented 12 years ago

If an empty message is published, the FixedLengthFrameDecoder throws an exception indicating and empty response can't be used. If an empty message is received, submit the the notification to the subscription immediately without waiting for the body.

Should the message be null or an empty string in this case?