bun-types 1.1.26-canary.20240823T140506 → 1.1.26
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/bun.d.ts +10 -0
- package/package.json +1 -1
package/bun.d.ts
CHANGED
|
@@ -2882,6 +2882,16 @@ declare module "bun" {
|
|
|
2882
2882
|
compress?: boolean,
|
|
2883
2883
|
): ServerWebSocketSendStatus;
|
|
2884
2884
|
|
|
2885
|
+
/**
|
|
2886
|
+
* A count of connections subscribed to a given topic
|
|
2887
|
+
*
|
|
2888
|
+
* This operation will loop through each topic internally to get the count.
|
|
2889
|
+
*
|
|
2890
|
+
* @param topic the websocket topic to check how many subscribers are connected to
|
|
2891
|
+
* @returns the number of subscribers
|
|
2892
|
+
*/
|
|
2893
|
+
subscriberCount(topic: string): number;
|
|
2894
|
+
|
|
2885
2895
|
/**
|
|
2886
2896
|
* Returns the client IP address and port of the given Request. If the request was closed or is a unix socket, returns null.
|
|
2887
2897
|
*
|
package/package.json
CHANGED