This repository has been archived on 2025-03-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
wetsock/lib/WetSock/Plugins/BasePlugin.js
2024-04-07 13:44:22 +01:00

18 lines
268 B
JavaScript

export default class BasePlugin {
#wetsock = undefined;
constructor() {
}
_getServer() {
return this.#wetsock;
}
initialize(wetsock) {
this.#wetsock = wetsock;
}
onMessage(clientId, message) {}
onOpen(clientId) {}
onClose(clientId) {}
}