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

18 lines
268 B
JavaScript
Raw Normal View History

2024-04-02 15:57:41 +00:00
export default class BasePlugin {
#wetsock = undefined;
constructor() {
}
_getServer() {
return this.#wetsock;
}
2024-04-02 15:57:41 +00:00
initialize(wetsock) {
this.#wetsock = wetsock;
}
onMessage(clientId, message) {}
onOpen(clientId) {}
onClose(clientId) {}
}