Sha256: 80ee83edb5a95db9f3dc7d3d627b7cdfde43a9408629647250d9f88d6a81503c
Contents?: true
Size: 815 Bytes
Versions: 6
Compression:
Stored size: 815 Bytes
Contents
const Interpreter = require('../interpreter/Interpreter') const CommandSerializer = require("../protocol/CommandSerializer"); const InMemoryConnectionData = require("../../utils/connectionData/InMemoryConnectionData"); const RuntimeLogger = require("../../utils/RuntimeLogger"); class Receiver { static connectionData = new InMemoryConnectionData(); Receiver() { RuntimeLogger.printRuntimeInfo() } static sendCommand(messageByteArray) { return new CommandSerializer().serialize(new Interpreter().process(messageByteArray), this.connectionData) } static heartBeat(messageByteArray) { let response = new Int8Array(2) response[0] = messageByteArray[11] response[1] = messageByteArray[12]-2 return response } } module.exports = Receiver
Version data entries
6 entries across 6 versions & 1 rubygems