Red5 / red5-websocket

Websocket plug-in for Red5
Apache License 2.0
61 stars 50 forks source link

Fix charset problem and leading and trailing blank space problem #2

Closed yogpstop closed 9 years ago

yogpstop commented 9 years ago

First, when we send text packet, the packet must contain UTF8 string. (WebSocketConnection.java fixes) Second, when recv text packet contains blank space at leading or trailing, it's removed at WSMessage. So I fixed it.

mondain commented 9 years ago

The change to WSMessage.java is not how we want to do the conversion; submit a pull with the first change and I'll accept it.

yogpstop commented 9 years ago

OK. I updated this pull request. But problem is not solved, so I'll create new pull request with better patch. Because if I send text message " test " from browser to red5, I got the text "test" in red5.