2019-07-04 16:18:38 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
import { decode_payload } from './DecodePayload.mjs';
|
|
|
|
|
|
|
|
class MessageHandler {
|
|
|
|
constructor() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-07-09 12:14:25 +00:00
|
|
|
async handle(message) {
|
|
|
|
console.log(message);
|
|
|
|
|
|
|
|
let decoded_payload = decode_payload(message.payload_raw);
|
|
|
|
console.log(decoded_payload);
|
2019-07-04 16:18:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default MessageHandler;
|