Google Groups

Re: [vertx:33014] Websocket handler receive complete messages?


Julien Viet Feb 25, 2016 1:28 AM
Posted in group: vert.x
yes.

the websocket can send complete message and fragment it into several frames (with writeBinaryMessage)

however it does not support frame gathering into a single message back, so you would need to do that based on the frame.


On Feb 25, 2016, at 9:01 AM, Joan Pujol <joan...@gmail.com> wrote:

Thanks Julien,

Then I understand that I've to go with frames and if a message can have several frames I've to manage that manually, haven't it?

Cheers,

On Thursday, 25 February 2016 07:59:05 UTC+1, Julien Viet wrote:
you need to use the frameHandler(Handler<WebSocketFrame>) and not the handler

On Feb 25, 2016, at 12:22 AM, Joan Pujol <joan...@gmail.com> wrote:

Hi,

When I use a ServerWebSocket handler(Handler<Buffer> handler) can I expect the handler to receive always completed messages?

If not, is there an easy way to manage complete messages?

Cheers,

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/8e2be72d-75e7-4eaa-8b9a-e40d85640b90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ve...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/65518778-5fff-442f-ba2f-873ba74e4590%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.