Skip to content

Commit 607672e

Browse files
committed
READE.md is updated !
1 parent 40730ff commit 607672e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,24 @@ urlpatterns = [
9999
```
100100

101101

102+
### Configuration du serveur en socket.io
103+
On va maintenant mettre en place les fonctionnalités du serveur de socket.io.
104+
105+
- Dans le fichier `django_socketio/socketio_app/views.py` insérer les lignes de code suivantes :
106+
107+
```python
108+
import socketio
109+
110+
# mode d'asynchronisation
111+
async_mode = 'gevent';
112+
113+
# definition du serveur de socket.io
114+
sio = socketio.Server(async_mode=async_mode);
115+
116+
117+
```
118+
119+
![OK](https://www.botreetechnologies.com/blog/wp-content/uploads/2020/12/deployment-strategy.jpg)
120+
102121

103122

0 commit comments

Comments
 (0)