@zaisma/cli 0.55.0 → 0.56.0
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/package.json
CHANGED
|
@@ -1102,6 +1102,7 @@ A room answers a refusal with `{ type: "error", code, message }`, then closes th
|
|
|
1102
1102
|
| `bad_idle_timeout` | The SDK's own: an `idleTimeoutSec` that isn't from 30 to 86400. |
|
|
1103
1103
|
| `bad_transport` | The SDK's own: a `transport` that isn't `"websocket"` or `"webtransport"`. |
|
|
1104
1104
|
| `zaisma_rooms_not_used` | The SDK's own: the game doesn't use Zaisma rooms, so there are none to join or list. |
|
|
1105
|
+
| `no_online_play_in_preview` | The SDK's own: the game is a preview of a version players don't have yet, which never plays online, so a test build never reaches live rooms. Test online play with `npx @zaisma/cli play-locally`, or publish the version and play it through a tester link (`add_tester_link`). A draft or private game's own page plays its live version online for its developer. |
|
|
1105
1106
|
|
|
1106
1107
|
### Close codes
|
|
1107
1108
|
|
|
@@ -559,6 +559,7 @@ A room answers a refusal with `{ type: "error", code, message }`, then closes th
|
|
|
559
559
|
| `bad_idle_timeout` | The SDK's own: an `idleTimeoutSec` that isn't from 30 to 86400. |
|
|
560
560
|
| `bad_transport` | The SDK's own: a `transport` that isn't `"websocket"` or `"webtransport"`. |
|
|
561
561
|
| `zaisma_rooms_not_used` | The SDK's own: the game doesn't use Zaisma rooms, so there are none to join or list. |
|
|
562
|
+
| `no_online_play_in_preview` | The SDK's own: the game is a preview of a version players don't have yet, which never plays online, so a test build never reaches live rooms. Test online play with `npx @zaisma/cli play-locally`, or publish the version and play it through a tester link (`add_tester_link`). A draft or private game's own page plays its live version online for its developer. |
|
|
562
563
|
|
|
563
564
|
### Close codes
|
|
564
565
|
|
package/skill/references/sdk.md
CHANGED
|
@@ -2148,8 +2148,9 @@ type RequestErrorCode =
|
|
|
2148
2148
|
|
|
2149
2149
|
/**
|
|
2150
2150
|
* The codes the SDK's errors have: a room's ({@link RoomErrorCode}), and:
|
|
2151
|
-
* - unchecked: no player pass, because the game isn't played on its zaisma.com page
|
|
2152
|
-
*
|
|
2151
|
+
* - unchecked: no player pass, because the game isn't played on its zaisma.com page or Zaisma couldn't check the browser.
|
|
2152
|
+
* - no_online_play_in_preview: no player pass, because the game is a preview of a version players don't have yet, so a test build never
|
|
2153
|
+
* reaches live rooms. Test online play with `npx @zaisma/cli play-locally`, or publish the version and play it through a tester link.
|
|
2153
2154
|
* - unknown_option, unknown_event: a call the SDK doesn't take; the message lists what it does.
|
|
2154
2155
|
* - slow_down: too many calls; try again in a minute.
|
|
2155
2156
|
* - zaisma_rooms_not_used: the game doesn't use Zaisma rooms.
|
|
@@ -2195,6 +2196,7 @@ type ErrorCode =
|
|
|
2195
2196
|
| "chat_too_fast"
|
|
2196
2197
|
| "chat_not_here"
|
|
2197
2198
|
| "unchecked"
|
|
2199
|
+
| "no_online_play_in_preview"
|
|
2198
2200
|
| "unknown_option"
|
|
2199
2201
|
| "unknown_event"
|
|
2200
2202
|
| "slow_down"
|