| OLD | NEW |
| 1 Chat server | 1 Chat server |
| 2 ----------- | 2 ----------- |
| 3 | 3 |
| 4 This sample implements a simple chat server using Dart for both the | 4 This sample implements a simple chat server using Dart for both the |
| 5 client and server code. The server is implementing a sub-set of the | 5 client and server code. The server is implementing a sub-set of the |
| 6 HTTP protocol using the socket support in the Dart VM. The client is | 6 HTTP protocol using the socket support in the Dart VM. The client is |
| 7 implemented using the Dart DOM API and compiled to JavaScript for | 7 implemented using the Dart DOM API and compiled to JavaScript for |
| 8 running in the browser. | 8 running in the browser. |
| 9 | 9 |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 First step is to compile the client Dart source into JavaScript for | 43 First step is to compile the client Dart source into JavaScript for |
| 44 the browser. | 44 the browser. |
| 45 | 45 |
| 46 $ ../../out/Release_ia32/dartc dart_client/chat.dart | 46 $ ../../out/Release_ia32/dartc dart_client/chat.dart |
| 47 | 47 |
| 48 This will create the JavaScript for the Dart application in the out | 48 This will create the JavaScript for the Dart application in the out |
| 49 directory. | 49 directory. |
| 50 | 50 |
| 51 Next step is to start the server | 51 Next step is to start the server |
| 52 | 52 |
| 53 $ ../../out/Release_ia32/dart_bin chat_server.dart | 53 $ ../../out/Release_ia32/dart chat_server.dart |
| 54 | 54 |
| 55 Now navigate you Chrome browser to http://localhost:8123 and start | 55 Now navigate you Chrome browser to http://localhost:8123 and start |
| 56 chatting. | 56 chatting. |
| OLD | NEW |