Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(631)

Unified Diff: src/site/samples/websockets/index.markdown

Issue 35563005: Added landing pages for new samples (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: Tweaks Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/site/samples/webaudio/index.markdown ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/site/samples/websockets/index.markdown
diff --git a/src/site/samples/websockets/index.markdown b/src/site/samples/websockets/index.markdown
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..418de7fca022c29794cdbdb070956a43e1c6a570 100644
--- a/src/site/samples/websockets/index.markdown
+++ b/src/site/samples/websockets/index.markdown
@@ -0,0 +1,35 @@
+---
+layout: default
+title: A Basic WebSockets Example
+live_example_url: example/index.html
+
+header:
+ css: ["/samples/samples.css"]
+---
+
+## {{ page.title }}
+
+A simple example of using WebSockets for communication.
+
+You can learn about the basics of WebSockets by reading the
+[Introducing WebSockets: Bringing Sockets to the Web](http://www.html5rocks.com/en/tutorials/file/filesystem/)
+article on HTML5Rocks.
+
+WebSocket is a protocol providing full-duplex communications channels over a
+single TCP connection.
+
+This example opens a WebSocket connection to an echo server
+(`ws://echo/websocket.org`), sends data to the server, and then displays the
+response on the web page.
+
+You can open the example in Dart Editor and run it by clicking `index.html`.
+
+Read the
+[source](https://github.com/dart-lang/dart-samples/tree/master/web/html5/websockets/basics).
+
+<iframe class="running-app-frame"
+ style="height:500px;width:100%;"
+ src="{{page.live_example_url}}">
+</iframe>
+
+See all [samples](/samples/).
« no previous file with comments | « src/site/samples/webaudio/index.markdown ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698