AND-11 AND-12 WIP: Implementing DataChannel for chat on Android.
Implemented DC chat for SkywayJS web client that seemed to work fine between the web clients. Android client is now able to send DC chat to web client. However, when receiving from web client, Android client is still unable to properly decode the message, despite trying various encoding format, including ISO-8859-1, UTF-8, US-ASCII, UTF-16BE, UTF-16LE, UTF-16, UTF-32BE, UTF-32LE, UTF-32, Big5, GBK. However, ISO-8859-1 sometimes gives an almost complete decoding of the received DC chat, the closest I have ever gotten to decoding DC chat on the Android side.
There is a possible error when getting a read only buffer of the actual ByteBuffer. To learn more about the java.nio.ByteBuffer class to further debug the problem.