| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library service_common; | 5 library service_common; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 import 'dart:typed_data'; | 9 import 'dart:typed_data'; |
| 10 | 10 |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 'query': request.id | 281 'query': request.id |
| 282 } | 282 } |
| 283 }); | 283 }); |
| 284 } else { | 284 } else { |
| 285 message = JSON.encode({'seq': serial, 'request': request.id}); | 285 message = JSON.encode({'seq': serial, 'request': request.id}); |
| 286 } | 286 } |
| 287 // Send message. | 287 // Send message. |
| 288 _webSocket.send(message); | 288 _webSocket.send(message); |
| 289 } | 289 } |
| 290 } | 290 } |
| OLD | NEW |