stelar-time-real 1.0.1 → 1.0.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 +6 -2
- package/src/index.js +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stelar-time-real",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Tu propio sistema de tiempo real personalizado - WebSocket ligero sin dependencias",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -25,8 +25,12 @@
|
|
|
25
25
|
"homepage": "https://github.com/stelar-time-real/stelar-time-real#readme",
|
|
26
26
|
"exports": {
|
|
27
27
|
".": "./src/index.js",
|
|
28
|
-
"./client": "./src/client.js"
|
|
28
|
+
"./client": "./src/client.js",
|
|
29
|
+
"./client.js": "./src/client.js"
|
|
29
30
|
},
|
|
31
|
+
"files": [
|
|
32
|
+
"src"
|
|
33
|
+
],
|
|
30
34
|
"dependencies": {
|
|
31
35
|
"ws": "^8.14.0"
|
|
32
36
|
}
|
package/src/index.js
CHANGED
|
@@ -180,7 +180,7 @@ class StelarServer {
|
|
|
180
180
|
this.wss = new WebSocketServer({ server: httpServer });
|
|
181
181
|
this.wss.on('connection', (client, req) => this._handleConnection(client, req));
|
|
182
182
|
this._startHeartbeat();
|
|
183
|
-
|
|
183
|
+
|
|
184
184
|
const finalPort = this.getPort();
|
|
185
185
|
if (callback) callback(finalPort);
|
|
186
186
|
resolve(finalPort);
|
|
@@ -219,5 +219,7 @@ class StelarServer {
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
+
import StelarClient from './client.js';
|
|
223
|
+
|
|
222
224
|
export default StelarServer;
|
|
223
|
-
export { StelarServer };
|
|
225
|
+
export { StelarServer, StelarClient };
|