|
|
@ -15,10 +15,7 @@ const server = fastify()
|
|
|
|
import { client, xml } from '@xmpp/client'
|
|
|
|
import { client, xml } from '@xmpp/client'
|
|
|
|
import { EventEmitter } from 'events'
|
|
|
|
import { EventEmitter } from 'events'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// create eventemitter for sending messages
|
|
|
|
// create eventemitter for sending messages
|
|
|
|
// @TODO find a better solution, was only to use it with online event, but not working as expected
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server.decorate('eventEmitter', new EventEmitter())
|
|
|
|
server.decorate('eventEmitter', new EventEmitter())
|
|
|
|
|
|
|
|
|
|
|
|
const xmpp = client({
|
|
|
|
const xmpp = client({
|
|
|
|