[ 
https://issues.apache.org/jira/browse/DIRMINA-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15222935#comment-15222935
 ] 

Emmanuel Lecharny commented on DIRMINA-907:
-------------------------------------------

The problem you have (ie, 2 messages being received instead of one) is not 
something you should ignore. Would the {{IoBuffer}} be large enough to hold the 
full message, you still may receive the data pieces by pieces. Worst case 
scenario, you would receive the JSON message byte by byte... 

It's up to you to deal with such fragmentation.

In your case, that means you should wait for the closing tag.

> Create a WebSocket iofilter for use in Apache Mina TCP servers
> --------------------------------------------------------------
>
>                 Key: DIRMINA-907
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-907
>             Project: MINA
>          Issue Type: New Feature
>          Components: Filter, Protocol - HTTP, Transport
>            Reporter: dhruv chopra
>             Fix For: 2.0.14
>
>         Attachments: MinaCodecUsage.png, WebSocketFilter.zip
>
>
> Shephertz has created a websocket iofilter that can be added in Apache mina 
> tcp server chain. The features of this codec are
> 1) Works with binary data sent/received over websocket
> 2) Abstracts the client details from the Handler code i.e. the handler need 
> not be aware that the remote endpoint is a browser or native client.
> 3) Tested with binary data sent/received on latest chrome and firefox 
> browsers. IE 9 doesn't support websockets and we will make changes if 
> required for IE 10 when its released and if it supports websockets.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to