switched to f** ESS modules
This commit is contained in:
+4
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user