garbagetown/playdocja — pull request #600 by wm3 (2014-03-22 08:40:56+00:00)
Title: manual/scalaGuide/main/async/ScalaWebSockets.md

- https://github.com/garbagetown/playdocja/blob/2.2.0/documentation/2.2.0/manual/scalaGuide/main/async/ScalaWebSockets.md
```
--- /Users/garbagetown/Desktop/2.1.5/manual/scalaGuide/main/async/ScalaWebSockets.md	2013-09-19 22:53:02.000000000 +0900
+++ /Users/garbagetown/Desktop/2.2.0/manual/scalaGuide/main/async/ScalaWebSockets.md	2013-09-19 10:11:22.000000000 +0900
@@ -14,7 +14,7 @@
>
>WebSocket is also useful for web applications that require real-time bi-directional communication. Before the implementation of WebSocket, such bi-directional communication was only possible using Comet channels; however, Comet is not trivial to implement reliably, and due to the TCP handshaking and HTTP header overhead, it may be inefficient for small messages. The WebSocket protocol aims to solve these problems without compromising the web’s security assumptions.
>
-> [[http://en.wikipedia.org/wiki/WebSocket]]
+>

## Handling WebSockets

@@ -46,7 +46,7 @@

It this example we are creating a simple iteratee that prints each message to console. To send messages, we create a simple dummy enumerator that will send a single **Hello!** message.

-> **Tip:** You can test WebSockets on [[http://websocket.org/echo.html]]. Just set the location to `ws://localhost:9000`.
+> **Tip:** You can test WebSockets on . Just set the location to `ws://localhost:9000`.

Let’s write another example that discards the input data and closes the socket just after sending the **Hello!** message:

```