Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
Fix: added event listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Jun 13, 2018
1 parent 33ed498 commit 70c686b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mosHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ export class MosHandler {
this.mos.on('rawMessage', (source, type, message) => {
this._logger.debug('rawMessage', source, type, message)
})
this.mos.on('info', (message) => {
this._logger.info(message)
})
this.mos.on('error', (error) => {
this._logger.error(error)
})

this.mos.onConnection((mosDevice: IMOSDevice) => {
// a new connection to a device has been made
Expand Down

0 comments on commit 70c686b

Please sign in to comment.