| Index: samples/chat/chat_stress_client.dart
|
| diff --git a/samples/chat/chat_stress_client.dart b/samples/chat/chat_stress_client.dart
|
| index 12555ec10ea7f4c8562d102536f624c723d4befa..b5dc325dc6ba6694ffca2508e7a807ef9863c287 100644
|
| --- a/samples/chat/chat_stress_client.dart
|
| +++ b/samples/chat/chat_stress_client.dart
|
| @@ -58,7 +58,7 @@ class ChatStressClient {
|
| .then((HttpClientResponse response) {
|
| StringBuffer body = new StringBuffer();
|
| response.listen(
|
| - (data) => body.add(new String.fromCharCodes(data)),
|
| + (data) => body.write(new String.fromCharCodes(data)),
|
| onDone: () => leaveResponseHandler(response, body.toString()));
|
| });
|
| }
|
| @@ -86,7 +86,7 @@ class ChatStressClient {
|
| .then((HttpClientResponse response) {
|
| StringBuffer body = new StringBuffer();
|
| response.listen(
|
| - (data) => body.add(new String.fromCharCodes(data)),
|
| + (data) => body.write(new String.fromCharCodes(data)),
|
| onDone: () => receiveResponseHandler(response, body.toString()));
|
| });
|
| }
|
| @@ -121,7 +121,7 @@ class ChatStressClient {
|
| .then((HttpClientResponse response) {
|
| StringBuffer body = new StringBuffer();
|
| response.listen(
|
| - (data) => body.add(new String.fromCharCodes(data)),
|
| + (data) => body.write(new String.fromCharCodes(data)),
|
| onDone: () => sendResponseHandler(response, body.toString()));
|
| });
|
| };
|
| @@ -149,7 +149,7 @@ class ChatStressClient {
|
| .then((HttpClientResponse response) {
|
| StringBuffer body = new StringBuffer();
|
| response.listen(
|
| - (data) => body.add(new String.fromCharCodes(data)),
|
| + (data) => body.write(new String.fromCharCodes(data)),
|
| onDone: () => joinResponseHandler(response, body.toString()));
|
| });
|
| }
|
|
|