OLD | NEW |
---|---|
(Empty) | |
1 --- | |
Kathy Walrath
2013/10/23 15:41:05
In the sample index, it says websockets instead of
shailentuli
2013/10/23 17:36:57
Done.
| |
2 layout: default | |
3 title: A basic websockets example | |
Kathy Walrath
2013/10/23 15:41:05
Use Title Caps
websockets -> WebSockets
shailentuli
2013/10/23 17:36:57
Done.
| |
4 live_example_url: example/index.html | |
5 | |
6 header: | |
7 css: ["/samples/samples.css"] | |
8 --- | |
9 | |
10 ## {{ page.title }} | |
11 | |
12 A simple example of using WebSockets for communication. | |
13 | |
14 You can learn about the basics of WebSockets by reading the | |
15 [Introducing WebSockets: Bringing Sockets to the Web](http://www.html5rocks.com/ en/tutorials/file/filesystem/) | |
16 article on HTML5Rocks. | |
17 | |
18 WebSocket is a protocol providing full-duplex communications channels over a | |
19 single TCP connection. | |
20 | |
21 This example opens a WebSocket connection to an echo server | |
22 (`ws://echo/websocket.org`), sends data to the server, and then displays the | |
23 response on the web page. | |
24 | |
25 You can open the example in Dart Editor and run it by clicking `index.html`. | |
26 | |
27 Read the | |
28 [source](https://github.com/dart-lang/dart-samples/tree/master/web/html5/websock ets/basics). | |
29 | |
30 <iframe class="running-app-frame" | |
31 style="height:500px;width:100%;" | |
32 src="{{page.live_example_url}}"> | |
33 </iframe> | |
34 | |
35 See all [samples](/samples/). | |
OLD | NEW |