Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multipart messages #23

Open
gafiatulin opened this issue Aug 19, 2017 · 0 comments
Open

Support multipart messages #23

gafiatulin opened this issue Aug 19, 2017 · 0 comments

Comments

@gafiatulin
Copy link
Contributor

gafiatulin commented Aug 19, 2017

With current version it is impossible to differentiate between simple and multipart messages.

One way to do that is to treat all messages as multipart: simple being multipart with only one part.
Source[ByteString]Source[org.zeromq.ZMsg]

Or introduce own message type ZMQMessage:

sealed trait ZMQMessage
case class SimpleZMQMessage(bytes: ByteString) extends ZMQMessage
case class MultipartZMQMessage(parts: Seq[ByteString]) extends ZMQMessage

And use Source[ZMQMessage]

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

No branches or pull requests

1 participant