@liveblocks/core 1.9.7 → 1.9.8-pre1
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/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -941,12 +941,15 @@ interface IWebSocket {
|
|
|
941
941
|
/**
|
|
942
942
|
* The following ranges will be respected by the client:
|
|
943
943
|
*
|
|
944
|
+
* 10xx: client will reauthorize (just like 41xx)
|
|
944
945
|
* 40xx: client will disconnect
|
|
945
946
|
* 41xx: client will reauthorize
|
|
946
947
|
* 42xx: client will retry without reauthorizing (currently not used)
|
|
947
948
|
*
|
|
948
949
|
*/
|
|
949
950
|
declare enum WebsocketCloseCodes {
|
|
951
|
+
/** Normal close of connection, the connection fulfilled its purpose. */
|
|
952
|
+
CLOSE_NORMAL = 1000,
|
|
950
953
|
/** Unexpected error happened with the network/infra level. In spirit akin to HTTP 503 */
|
|
951
954
|
CLOSE_ABNORMAL = 1006,
|
|
952
955
|
/** Unexpected error happened. In spirit akin to HTTP 500 */
|
|
@@ -965,6 +968,8 @@ declare enum WebsocketCloseCodes {
|
|
|
965
968
|
MAX_NUMBER_OF_MESSAGES_PER_DAY_PER_APP = 4004,
|
|
966
969
|
/** Room is full, disconnect */
|
|
967
970
|
MAX_NUMBER_OF_CONCURRENT_CONNECTIONS_PER_ROOM = 4005,
|
|
971
|
+
/** The server kicked the connection from the room. */
|
|
972
|
+
KICKED = 4100,
|
|
968
973
|
/** The auth token is expired, reauthorize to get a fresh one. In spirit akin to HTTP 401 */
|
|
969
974
|
TOKEN_EXPIRED = 4109,
|
|
970
975
|
/** Disconnect immediately */
|
package/dist/index.d.ts
CHANGED
|
@@ -941,12 +941,15 @@ interface IWebSocket {
|
|
|
941
941
|
/**
|
|
942
942
|
* The following ranges will be respected by the client:
|
|
943
943
|
*
|
|
944
|
+
* 10xx: client will reauthorize (just like 41xx)
|
|
944
945
|
* 40xx: client will disconnect
|
|
945
946
|
* 41xx: client will reauthorize
|
|
946
947
|
* 42xx: client will retry without reauthorizing (currently not used)
|
|
947
948
|
*
|
|
948
949
|
*/
|
|
949
950
|
declare enum WebsocketCloseCodes {
|
|
951
|
+
/** Normal close of connection, the connection fulfilled its purpose. */
|
|
952
|
+
CLOSE_NORMAL = 1000,
|
|
950
953
|
/** Unexpected error happened with the network/infra level. In spirit akin to HTTP 503 */
|
|
951
954
|
CLOSE_ABNORMAL = 1006,
|
|
952
955
|
/** Unexpected error happened. In spirit akin to HTTP 500 */
|
|
@@ -965,6 +968,8 @@ declare enum WebsocketCloseCodes {
|
|
|
965
968
|
MAX_NUMBER_OF_MESSAGES_PER_DAY_PER_APP = 4004,
|
|
966
969
|
/** Room is full, disconnect */
|
|
967
970
|
MAX_NUMBER_OF_CONCURRENT_CONNECTIONS_PER_ROOM = 4005,
|
|
971
|
+
/** The server kicked the connection from the room. */
|
|
972
|
+
KICKED = 4100,
|
|
968
973
|
/** The auth token is expired, reauthorize to get a fresh one. In spirit akin to HTTP 401 */
|
|
969
974
|
TOKEN_EXPIRED = 4109,
|
|
970
975
|
/** Disconnect immediately */
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var __export = (target, all) => {
|
|
|
6
6
|
|
|
7
7
|
// src/version.ts
|
|
8
8
|
var PKG_NAME = "@liveblocks/core";
|
|
9
|
-
var PKG_VERSION = "1.9.
|
|
9
|
+
var PKG_VERSION = "1.9.8-pre1";
|
|
10
10
|
var PKG_FORMAT = "cjs";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -652,6 +652,7 @@ var ServerMsgCode = /* @__PURE__ */ ((ServerMsgCode2) => {
|
|
|
652
652
|
|
|
653
653
|
// src/types/IWebSocket.ts
|
|
654
654
|
var WebsocketCloseCodes = /* @__PURE__ */ ((WebsocketCloseCodes2) => {
|
|
655
|
+
WebsocketCloseCodes2[WebsocketCloseCodes2["CLOSE_NORMAL"] = 1e3] = "CLOSE_NORMAL";
|
|
655
656
|
WebsocketCloseCodes2[WebsocketCloseCodes2["CLOSE_ABNORMAL"] = 1006] = "CLOSE_ABNORMAL";
|
|
656
657
|
WebsocketCloseCodes2[WebsocketCloseCodes2["UNEXPECTED_CONDITION"] = 1011] = "UNEXPECTED_CONDITION";
|
|
657
658
|
WebsocketCloseCodes2[WebsocketCloseCodes2["TRY_AGAIN_LATER"] = 1013] = "TRY_AGAIN_LATER";
|
|
@@ -661,6 +662,7 @@ var WebsocketCloseCodes = /* @__PURE__ */ ((WebsocketCloseCodes2) => {
|
|
|
661
662
|
WebsocketCloseCodes2[WebsocketCloseCodes2["MAX_NUMBER_OF_CONCURRENT_CONNECTIONS"] = 4003] = "MAX_NUMBER_OF_CONCURRENT_CONNECTIONS";
|
|
662
663
|
WebsocketCloseCodes2[WebsocketCloseCodes2["MAX_NUMBER_OF_MESSAGES_PER_DAY_PER_APP"] = 4004] = "MAX_NUMBER_OF_MESSAGES_PER_DAY_PER_APP";
|
|
663
664
|
WebsocketCloseCodes2[WebsocketCloseCodes2["MAX_NUMBER_OF_CONCURRENT_CONNECTIONS_PER_ROOM"] = 4005] = "MAX_NUMBER_OF_CONCURRENT_CONNECTIONS_PER_ROOM";
|
|
665
|
+
WebsocketCloseCodes2[WebsocketCloseCodes2["KICKED"] = 4100] = "KICKED";
|
|
664
666
|
WebsocketCloseCodes2[WebsocketCloseCodes2["TOKEN_EXPIRED"] = 4109] = "TOKEN_EXPIRED";
|
|
665
667
|
WebsocketCloseCodes2[WebsocketCloseCodes2["CLOSE_WITHOUT_RETRY"] = 4999] = "CLOSE_WITHOUT_RETRY";
|
|
666
668
|
return WebsocketCloseCodes2;
|