Skip to content

Commit 245ac7f

Browse files
committed
Add URL query message sending feature to CHANGELOG and README
1 parent be914a7 commit 245ac7f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.5.4
2+
- When reconnecting to an existing chat session, the bot will send any message contained in the `?send=<message>` URL parameter once it has restored the socket.io connection
3+
14
## 0.5.3
25
- Added the parameter hideWhenNotConnected to not display the widget when the server is not connected (defaults to true)
36
- Fixed issue where the 'connected' property was being loaded from previous session instead of being triggered on actual connection

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ emit('bot_uttered', message, room=socket_id)
208208
`storage: "local"` defines the state to be stored in the local stoage. The local storage persists after the the browser is closed, and is cleared when the cookies of the browser are cleared, or when `localStorage.clear()`is called.
209209

210210

211+
## Sending a message on page load
212+
213+
When reconnecting to an existing chat session, the bot will send any message contained in the `?send=<message>` URL parameter once it has restored the socket.io connection. This is useful if you would like your bot to be able to offer your user to navigate around the site.
214+
211215

212216
## API
213217

0 commit comments

Comments
 (0)