Skip to content

Commit ea8ba0a

Browse files
author
Nathan Zylbersztejn
authored
Update README.md
1 parent d1e2d3d commit ea8ba0a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,23 +102,23 @@ Use the SocketIOInput channel: See [instructions in the Rasa Core documentation]
102102
#### Others
103103
Your backend must expose a socket with [socket.io](http://socket.io)
104104

105-
### Receiving messages from the chat
105+
##### Receiving messages from the chat
106106

107107
```python
108108
@socketio.on('user_uttered')
109109
def handle_message(message):
110110
# do something
111111
```
112112

113-
### Sending messages from the backend to the chat widget
113+
##### Sending messages from the backend to the chat widget
114114

115-
##### sending plain text
115+
###### sending plain text
116116

117117
```python
118118
emit('bot_uttered', {"text": "hello"}, room=session_id)
119119
```
120120

121-
##### sending quick replies
121+
###### sending quick replies
122122

123123
```python
124124
message = {
@@ -130,7 +130,7 @@ message = {
130130
emit('bot_uttered', message, room=socket_id)
131131
```
132132

133-
##### sending a link Snippet
133+
###### sending a link Snippet
134134

135135
Admittedly a bit far fetched, thinking that Snippets would evolve to carousels
136136
of generic templates :)
@@ -157,7 +157,7 @@ message = {
157157
emit('bot_uttered', message, room=socket_id)
158158
```
159159

160-
##### sending a Video Message
160+
###### sending a Video Message
161161

162162
```python
163163
message = {
@@ -172,7 +172,7 @@ message = {
172172
emit('bot_uttered', message, room=socket_id)
173173
```
174174

175-
##### sending an Image Message
175+
###### sending an Image Message
176176

177177
```python
178178
message = {

0 commit comments

Comments
 (0)