switched to f** ESS modules

This commit is contained in:
STEINNI
2025-09-14 21:06:13 +00:00
parent f4ac7df4a7
commit b4cd02add5
16 changed files with 63 additions and 49 deletions
+4 -4
View File
@@ -1,10 +1,10 @@
const crypto = require('crypto')
const gatewayActions = require('./actions')
import crypto from 'crypto'
import { gatewayActions } from './actions/index.js'
module.exports = class WssConnexion {
export class WssConnexion {
constructor(options){
Object.assign(this, gatewayActions.methods)
Object.assign(this, gatewayActions)
this.config = options.config;
this.socket = options.socket;