Augmented buffer size

Fix a bug for long string received from the server. Could need to be
futher imporved using "chunks".
Added ChannelName var

Demo app now works with the official demo
(http://ape-project.org/demos/chat/)