Skip to content

Commit 735471e

Browse files
authored
Merge pull request #1116 from codeborne/fix-websockets-documentation
Fixes #1111 fix documentation for WebSockets
2 parents 02f7bac + 09ee7b6 commit 735471e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

documentation/manual/asynchronous.textile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ h2. Using WebSockets
114114

115115
WebSockets are a way to open a two-way communication channel between a browser and your application. On the browser side, you open a socket using a "ws://" url:
116116

117-
bc. new Socket("ws://localhost:9000/helloSocket?name=Guillaume")
117+
bc. new WebSocket("ws://localhost:9000/helloSocket?name=Guillaume")
118118

119119
On the Play side you declare a WS route:
120120

documentation/manual_ja/asynchronous.textile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ h2. WebSockets の使用
114114

115115
WebSockets は、ブラウザとアプリケーション間の双方向コミュニケーションチャンネルを開く、ひとつの方法です。ブラウザ側で "ws://" という url を使ってソケットを開きます。
116116

117-
bc. new Socket("ws://localhost:9000/helloSocket?name=Guillaume")
117+
bc. new WebSocket("ws://localhost:9000/helloSocket?name=Guillaume")
118118

119119
Play 側では WS ルートを定義します:
120120

0 commit comments

Comments
 (0)