node-wsjtx-companion – Diff between revs 4 and 5
?pathlinks?
Rev 4 | Rev 5 | |||
---|---|---|---|---|
Line 194... | Line 194... | |||
194 | udpServer.close() |
194 | udpServer.close() |
|
195 | }) |
195 | }) |
|
Line 196... | Line 196... | |||
196 | |
196 | |
|
197 | // when UDP server is listening |
197 | // when UDP server is listening |
|
- | 198 | udpServer.on('listening', () => { |
||
- | 199 | udpServer.addMembership(config.ham.udpAddress) |
||
198 | udpServer.on('listening', () => { |
200 | |
|
199 | const address = udpServer.address() |
201 | const address = udpServer.address() |
|
200 | log.info(`UDP server listening on ${address.address}:${address.port}`) |
202 | log.info(`UDP server listening on ${address.address}:${address.port}`) |
|
Line 201... | Line 203... | |||
201 | }) |
203 | }) |
|
Line 274... | Line 276... | |||
274 | // push the adif reported by WSJT-X to the stream to be processed |
276 | // push the adif reported by WSJT-X to the stream to be processed |
|
275 | stringReadable.push(msg.adif) |
277 | stringReadable.push(msg.adif) |
|
276 | stringReadable.push(null) |
278 | stringReadable.push(null) |
|
277 | stringReadable.pipe(adifReader) |
279 | stringReadable.pipe(adifReader) |
|
278 | break; |
280 | break; |
|
- | 281 | default: |
||
- | 282 | //log.info("Some activity detected...") |
||
- | 283 | break; |
||
279 | } |
284 | } |
|
280 | } catch (exception) { |
285 | } catch (exception) { |
|
281 | log.error(`Exception thrown while reading WSJT-X packet ${exception}`) |
286 | log.error(`Exception thrown while reading WSJT-X packet ${exception}`) |
|
282 | } |
287 | } |
|
283 | }) |
288 | }) |
|
Line 284... | Line 289... | |||
284 | |
289 | |
|
285 | // bind to the WSJT-X UDP port in order to process messages |
290 | // bind to the WSJT-X UDP port in order to process messages |