@wcstack/websocket 4.0.0-rc.7 → 4.0.0-rc.8
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.ja.md +1 -1
- package/README.md +1 -1
- package/package.json +1 -1
package/README.ja.md
CHANGED
|
@@ -329,7 +329,7 @@ Core の構造サーフェスは wcstack I/O ノード横断の規範です([asy
|
|
|
329
329
|
1. DOM に接続され、`url` が設定されているとき
|
|
330
330
|
2. DOM 接続中に `url` 属性が変更されたとき
|
|
331
331
|
|
|
332
|
-
どちらの場合も接続は 1 本だけ開きます。同じ `url`
|
|
332
|
+
どちらの場合も接続は 1 本だけ開きます。同じ `url` をもう一度書いても(属性でもプロパティでも)変更ではないので接続し直しません。同じ URL へ接続し直すには `connect()` を呼んでください。マークアップに `url` を書いた要素が upgrade されるときも、接続は DOM に接続された時点の 1 回だけです。
|
|
333
333
|
|
|
334
334
|
`manual` 属性を設定すると自動接続が無効になり、`connect()` メソッドや `trigger` プロパティで明示的に制御できます。
|
|
335
335
|
|
package/README.md
CHANGED
|
@@ -332,7 +332,7 @@ By default, `<wcs-ws>` automatically opens a connection when:
|
|
|
332
332
|
1. it is connected to the DOM and `url` is set
|
|
333
333
|
2. the `url` attribute changes while connected to the DOM
|
|
334
334
|
|
|
335
|
-
Each of these opens exactly one connection. Writing the same `url` again (as an attribute or a property
|
|
335
|
+
Each of these opens exactly one connection. Writing the same `url` again (as an attribute or a property) is not a change and does not reconnect; call `connect()` to reconnect to the same URL. When the element is upgraded with a `url` already in the markup, the connection is opened once, when it is connected.
|
|
336
336
|
|
|
337
337
|
Set the `manual` attribute to disable auto-connect and control the connection explicitly via `connect()` or `trigger`.
|
|
338
338
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wcstack/websocket",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.8",
|
|
4
4
|
"description": "Declarative WebSocket component for Web Components. Framework-agnostic real-time communication via wc-bindable-protocol.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.esm.js",
|