Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a00ddb1

Browse files
committed
Address feedback
1 parent 9ee2a1c commit a00ddb1

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

appengine/flexible/websockets/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017 Google Inc.
1+
# Copyright 2018 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414

1515
from __future__ import print_function
1616

17-
# [START app]
17+
# [START gae_flex_websockets_app]
1818
from flask import Flask, render_template
1919
from flask_sockets import Sockets
2020

@@ -35,7 +35,7 @@ def chat_socket(ws):
3535
clients = ws.handler.server.clients.values()
3636
for client in clients:
3737
client.ws.send(message)
38-
# [END app]
38+
# [END gae_flex_websockets_app]
3939

4040

4141
@app.route('/')

appengine/flexible/websockets/main_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017 Google Inc.
1+
# Copyright 2018 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

appengine/flexible/websockets/templates/index.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{#
2-
# Copyright 2015 Google Inc.
2+
# Copyright 2018 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#}
16-
{# [START index] #}
1716
<!doctype html>
1817
<html>
1918
<head>
@@ -22,7 +21,7 @@
2221
</head>
2322
<body>
2423

25-
<!-- [START form] -->
24+
<!-- [START gae_flex_websockets_form] -->
2625
<p>Chat demo</p>
2726
<form id="chat-form">
2827
<textarea id="chat-text" placeholder="Enter some text..."></textarea>
@@ -38,11 +37,11 @@
3837
<p>Status:</p>
3938
<ul id="chat-status"></ul>
4039
</div>
41-
<!-- [END form] -->
40+
<!-- [END gae_flex_websockets_form] -->
4241

4342
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
4443
<script>
45-
// [START js]
44+
// [START gae_flex_websockets_js]
4645
$(function() {
4746
/* If the main page is served via https, the WebSocket must be served via
4847
"wss" (WebSocket Secure) */
@@ -91,8 +90,7 @@
9190
websocket.send(data);
9291
});
9392
});
94-
// [END js]
93+
// [END gae_flex_websockets_js]
9594
</script>
9695
</body>
9796
</html>
98-
{# [END index] #}

0 commit comments

Comments
 (0)