@webqit/node-live-response 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -242,6 +242,8 @@ Exchange messages between client and server through a message port.
|
|
|
242
242
|
|
|
243
243
|
(More in the [LiveResponse docs](https://github.com/webqit/fetch-plus?tab=readme-ov-file#3-bidirectional-messaging-via-message-ports))
|
|
244
244
|
|
|
245
|
+
On the server:
|
|
246
|
+
|
|
245
247
|
```js
|
|
246
248
|
app.get('/chat', liveMode(), async (req, res) => {
|
|
247
249
|
const liveRes = new LiveResponse({ title: 'Chat' });
|