addressed feedback

This commit is contained in:
Miguel Grinberg
2017-02-20 14:32:14 -08:00
parent 6e903ee7d5
commit 1d6e11ca10
4 changed files with 35 additions and 21 deletions

View File

@@ -9,7 +9,7 @@ async def index(request):
return await file('websocket.html')
@app.ws('/feed')
@app.websocket('/feed')
async def feed(request, ws):
while True:
data = 'hello!'