mirror of
https://github.com/kennethreitz/flask-sockets.git
synced 2026-06-05 23:10:16 +00:00
codeblock
This commit is contained in:
+2
-2
@@ -3,7 +3,7 @@ Flask-WebSocket
|
||||
|
||||
WebSockets in Python are really hard.
|
||||
|
||||
::
|
||||
.. code-block:: python
|
||||
|
||||
from flask import Flask
|
||||
from flask_websockets import WebSocket
|
||||
@@ -16,7 +16,7 @@ WebSockets in Python are really hard.
|
||||
message = ws.receive()
|
||||
ws.send(message)
|
||||
|
||||
@app.route('/'')
|
||||
@app.route('/')
|
||||
def hello():
|
||||
return 'Hello World!'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user