Wait out the messages the application holds before shutting a session down
This commit is contained in:
+11
@@ -1,3 +1,14 @@
|
||||
/** The 8-bit reference tying a long SMS's segments together, counted per session. */
|
||||
export class ConcatReference {
|
||||
private current = 0;
|
||||
|
||||
next(): number {
|
||||
this.current = this.current >= 255 ? 1 : this.current + 1;
|
||||
|
||||
return this.current;
|
||||
}
|
||||
}
|
||||
|
||||
export type ConcatInfo = {
|
||||
part: number;
|
||||
reference: number;
|
||||
|
||||
Reference in New Issue
Block a user