playsocketjs 1.0.14 → 1.1.1
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/dist/playsocket-client.js +2170 -126
- package/dist/playsocket-server.js +2242 -132
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -71,6 +71,7 @@ Creates a new PlaySocket instance with a specified ID and configuration options.
|
|
|
71
71
|
#### Configuration options
|
|
72
72
|
- `endpoint`: WebSocket server endpoint (e.g., 'wss://example.com/socket')
|
|
73
73
|
- `customData`: You can pass arbitrary data to the "clientRegistered" server event (optional)
|
|
74
|
+
- `debug`: Set this property to true to enable extra logging
|
|
74
75
|
|
|
75
76
|
### Methods
|
|
76
77
|
|
|
@@ -192,6 +193,7 @@ Creates a new PlaySocket Server instance with configuration options.
|
|
|
192
193
|
- `port`: Port to listen on (default: 3000, used only if no server provided)
|
|
193
194
|
- `path`: WebSocket endpoint path (default: '/')
|
|
194
195
|
- `server`: Existing http server (optional)
|
|
196
|
+
- `debug`: Set this property to true to enable extra logging
|
|
195
197
|
|
|
196
198
|
### Methods
|
|
197
199
|
|