Skip to content

Commit

Permalink
update ts defs
Browse files Browse the repository at this point in the history
  • Loading branch information
heapwolf committed Sep 25, 2023
1 parent 54c2a71 commit 5283cdf
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions api/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5256,6 +5256,10 @@ declare module "socket:stream-relay/packets" {
* The size in bytes of the `usr2` field.
*/
export const USR2_BYTES: 32;
/**
* The size in bytes of the `ttl` field.
*/
export const TTL_BYTES: 4;
/**
* The size in bytes of the `stream_to` field.
*/
Expand Down Expand Up @@ -5343,6 +5347,7 @@ declare module "socket:stream-relay/packets" {
streamFrom: string;
usr1: string;
usr2: string;
ttl: number;
message: string;
sig: any;
#private;
Expand Down Expand Up @@ -5376,7 +5381,7 @@ declare module "socket:stream-relay/packets" {
}
export class PacketPublish extends Packet {
static type: number;
constructor({ message, sig, packetId, clusterId, subclusterId, nextId, clock, to, usr1, usr2, previousId }: {
constructor({ message, sig, packetId, clusterId, subclusterId, nextId, clock, to, usr1, usr2, ttl, previousId }: {
message: any;
sig: any;
packetId: any;
Expand All @@ -5387,12 +5392,13 @@ declare module "socket:stream-relay/packets" {
to: any;
usr1: any;
usr2: any;
ttl: any;
previousId: any;
});
}
export class PacketStream extends Packet {
static type: number;
constructor({ message, sig, packetId, clusterId, subclusterId, nextId, clock, usr1, usr2, streamTo, streamFrom, previousId }: {
constructor({ message, sig, packetId, clusterId, subclusterId, nextId, clock, usr1, usr2, ttl, streamTo, streamFrom, previousId }: {
message: any;
sig: any;
packetId: any;
Expand All @@ -5402,6 +5408,7 @@ declare module "socket:stream-relay/packets" {
clock: any;
usr1: any;
usr2: any;
ttl: any;
streamTo: any;
streamFrom: any;
previousId: any;
Expand Down Expand Up @@ -5733,7 +5740,7 @@ declare module "socket:stream-relay/index" {
* @return {boolean}
*/
export function rateLimit(rates: Map<any, any>, type: number, port: number, address: string, subclusterIdQuota: any): boolean;
export function debug(...args: any[]): void;
export function debug(pid: any, ...args: any[]): void;
/**
* Retry delay in milliseconds for ping.
* @type {number}
Expand Down

0 comments on commit 5283cdf

Please sign in to comment.