Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1367

How to use multiple frame delimiters in akka stream tcp?

$
0
0

Hi!

I am using akka streams tcp module for handling some tcp protocol connection. And I would like to be able to specify multiple frame delimiters. Unfortunately I didn’t find a way how to achieve that. akka.stream.scaladsl.Framing.delimiter takes only single ByteString delimiter as an argument.

It seems to be quite common problem. For example netty defaults to using “\r\n” and “\n” as allowed line delimiters.
https://netty.io/4.0/api/io/netty/handler/codec/DelimiterBasedFrameDecoder.html

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1367

Trending Articles