landstrasse
Version:
Strongly typed WAMP Client for browsers
20 lines • 475 B
JavaScript
export class GlobalIDGenerator {
id() {
// Taken from autobahn-js util.js
return Math.floor(Math.random() * 9007199254740992) + 1;
}
}
export class SessionIDGenerator {
constructor() {
Object.defineProperty(this, "currentID", {
enumerable: true,
configurable: true,
writable: true,
value: 1
});
}
id() {
return this.currentID++;
}
}
//# sourceMappingURL=id.js.map