Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
) {
const {
authenticateClient: verifyClient,
port = 80,
chronologicalGroups = ['default'],
...storePollerParams
} = params
this.wss = new WebSocketServer({verifyClient, port})
this.wss.on('connection', this.onClientConnected.bind(this))
this.chronologicalGroups = chronologicalGroups
for (const chronologicalGroup of chronologicalGroups) {
this.storePollers.push(
new StorePoller({
...storePollerParams,
processCommit: this.processCommit.bind(this),
})
)
}
this.debug = debug('DDES.EventStreamer.Server')
}