PadMessageHandler: Delete unnecessary protocolVersion

We can assume that the client code is always in sync with what the
server expects.
This commit is contained in:
Richard Hansen 2021-10-30 00:34:15 -04:00
parent ce730b0493
commit d36a37d666
5 changed files with 0 additions and 20 deletions

View file

@ -69,10 +69,6 @@ exports.setSocketIO = (_io) => {
}
socket.on('message', (message, ack = () => {}) => {
if (message.protocolVersion && message.protocolVersion !== 2) {
logger.warn(`Protocolversion header is not correct: ${JSON.stringify(message)}`);
return;
}
if (!message.component || !components[message.component]) {
logger.error(`Can't route the message: ${JSON.stringify(message)}`);
return;