18 lines
268 B
JavaScript
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) {}
|
|
}
|