stelar-time-real 3.3.1 → 3.3.2
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 +1 -1
- package/src/websocket.js +1 -1
- package/src/websocket.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stelar-time-real",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"description": "Zero-dependency production real-time library. Custom binary TCP + manual WebSocket. No ws package. Rate limiting (custom/per-event/per-client), hooks, custom IP tracker, custom health check, runtime config, rooms, ACKs, middleware, TLS/SSL.",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
package/src/websocket.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @stelar-time-real WebSocket (RFC 6455) + permessage-deflate (RFC 7692) */
|
|
2
2
|
import { createHash, randomBytes } from 'crypto';
|
|
3
3
|
import { deflateRawSync, inflateRawSync } from 'zlib';
|
|
4
|
-
const WS_MAGIC = '258EAFA5-E914-47DA-95CA-
|
|
4
|
+
const WS_MAGIC = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11';
|
|
5
5
|
export const DEFAULT_MAX_WS_FRAME_SIZE = 10 * 1024 * 1024;
|
|
6
6
|
export const OP_CONTINUATION = 0x0, OP_TEXT = 0x1, OP_BINARY = 0x2, OP_CLOSE = 0x8, OP_PING = 0x9, OP_PONG = 0xA;
|
|
7
7
|
export const CLOSE_NORMAL = 1000, CLOSE_GOING_AWAY = 1001, CLOSE_PROTOCOL_ERROR = 1002, CLOSE_UNSUPPORTED = 1003, CLOSE_INVALID_PAYLOAD = 1007, CLOSE_POLICY_VIOLATION = 1008, CLOSE_MESSAGE_TOO_BIG = 1009, CLOSE_INTERNAL_ERROR = 1011;
|
package/src/websocket.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { createHash, randomBytes } from 'crypto';
|
|
4
4
|
import { deflateRawSync, inflateRawSync } from 'zlib';
|
|
5
5
|
|
|
6
|
-
const WS_MAGIC = '258EAFA5-E914-47DA-95CA-
|
|
6
|
+
const WS_MAGIC = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11';
|
|
7
7
|
export const DEFAULT_MAX_WS_FRAME_SIZE = 10 * 1024 * 1024;
|
|
8
8
|
|
|
9
9
|
export const OP_CONTINUATION = 0x0, OP_TEXT = 0x1, OP_BINARY = 0x2,
|