@eleven-am/pondsocket 0.1.71 → 0.1.72

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.
@@ -27,6 +27,12 @@ class EventResponse extends abstractResponse_1.PondResponse {
27
27
  __classPrivateFieldSet(this, _EventResponse_engine, engine, "f");
28
28
  __classPrivateFieldSet(this, _EventResponse_executed, false, "f");
29
29
  }
30
+ /**
31
+ * @desc Whether the server has responded to the request
32
+ */
33
+ get hasResponded() {
34
+ return __classPrivateFieldGet(this, _EventResponse_executed, "f");
35
+ }
30
36
  /**
31
37
  * @desc Accepts the request and optionally assigns data to the client
32
38
  * @param assigns - the data to assign to the client
@@ -29,6 +29,12 @@ class ConnectionResponse extends abstractResponse_1.PondResponse {
29
29
  __classPrivateFieldSet(this, _ConnectionResponse_clientId, clientId, "f");
30
30
  __classPrivateFieldSet(this, _ConnectionResponse_executed, false, "f");
31
31
  }
32
+ /**
33
+ * @desc Whether the server has responded to the request
34
+ */
35
+ get hasResponded() {
36
+ return __classPrivateFieldGet(this, _ConnectionResponse_executed, "f");
37
+ }
32
38
  /**
33
39
  * @desc Accepts the request and optionally assigns data to the client
34
40
  * @param assigns - the data to assign to the client
@@ -27,6 +27,12 @@ class JoinResponse extends abstractResponse_1.PondResponse {
27
27
  __classPrivateFieldSet(this, _JoinResponse_engine, engine, "f");
28
28
  __classPrivateFieldSet(this, _JoinResponse_executed, false, "f");
29
29
  }
30
+ /**
31
+ * @desc Whether the server has responded to the request
32
+ */
33
+ get hasResponded() {
34
+ return __classPrivateFieldGet(this, _JoinResponse_executed, "f");
35
+ }
30
36
  /**
31
37
  * @desc Accepts the request and optionally assigns data to the client
32
38
  * @param assigns - the data to assign to the client
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleven-am/pondsocket",
3
- "version": "0.1.71",
3
+ "version": "0.1.72",
4
4
  "description": "PondSocket is a fast simple socket server",
5
5
  "keywords": [
6
6
  "socket",
package/types.d.ts CHANGED
@@ -85,6 +85,11 @@ declare class AbstractRequest<Path extends string> {
85
85
  }
86
86
 
87
87
  declare abstract class PondResponse {
88
+ /**
89
+ * @desc Whether the server has responded to the request
90
+ */
91
+ public abstract hasResponded: boolean;
92
+
88
93
  /**
89
94
  * @desc Rejects the request with the given error message
90
95
  * @param message - the error message
@@ -115,6 +120,11 @@ declare class EventRequest<Path extends string> extends AbstractRequest<Path> {
115
120
  }
116
121
 
117
122
  declare class EventResponse extends PondResponse {
123
+ /**
124
+ * @desc Whether the server has responded to the request
125
+ */
126
+ hasResponded: boolean;
127
+
118
128
  /**
119
129
  * @desc Accepts the request and optionally assigns data to the client
120
130
  * @param assigns - the data to assign to the client
@@ -396,6 +406,11 @@ declare class JoinRequest<Path extends string> extends AbstractRequest<Path> {
396
406
  }
397
407
 
398
408
  declare class JoinResponse extends PondResponse {
409
+ /**
410
+ * @desc Whether the server has responded to the request
411
+ */
412
+ hasResponded: boolean;
413
+
399
414
  /**
400
415
  * @desc Accepts the request and optionally assigns data to the client
401
416
  * @param assigns - the data to assign to the client
@@ -447,6 +462,11 @@ declare class JoinResponse extends PondResponse {
447
462
  }
448
463
 
449
464
  declare class ConnectionResponse extends PondResponse {
465
+ /**
466
+ * @desc Whether the server has responded to the request
467
+ */
468
+ hasResponded: boolean;
469
+
450
470
  /**
451
471
  * @desc Accepts the request and optionally assigns data to the client
452
472
  * @param assigns - the data to assign to the client