| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 import 'dart:html'; | 5 import 'dart:html'; |
| 6 import 'dart:convert'; | 6 import 'dart:convert'; |
| 7 | 7 |
| 8 | 8 |
| 9 class Client { | 9 class Client { |
| 10 static const Duration CONNECT_DELAY = const Duration(milliseconds: 500); | 10 static const Duration CONNECT_DELAY = const Duration(milliseconds: 500); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 'input': input | 91 'input': input |
| 92 }; | 92 }; |
| 93 webSocket.send(JSON.encode(request)); | 93 webSocket.send(JSON.encode(request)); |
| 94 } | 94 } |
| 95 } | 95 } |
| 96 | 96 |
| 97 | 97 |
| 98 void main() { | 98 void main() { |
| 99 var client = new Client(); | 99 var client = new Client(); |
| 100 } | 100 } |
| OLD | NEW |