We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de7d656 commit fcad2c9Copy full SHA for fcad2c9
1 file changed
scripts/rotator-sim.mjs
@@ -115,7 +115,10 @@ function posStr() {
115
return `az=${az.toFixed(1)}° el=${el.toFixed(1)}°`;
116
}
117
118
-const wss = new WebSocketServer({ port: PORT });
+const wss = new WebSocketServer({
119
+ port: PORT,
120
+ handleProtocols: (protocols) => protocols.has('binary') ? 'binary' : false,
121
+});
122
123
console.log(`\n Rotator simulator listening on ws://localhost:${PORT}`);
124
console.log(` Az max: ${AZ_MAX_SPEED}°/s El max: ${EL_MAX_SPEED}°/s Accel: ${ACCEL}°/s²`);
0 commit comments