js: prettier
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 29m58s

This commit is contained in:
Cory McWilliams 2025-02-27 15:00:37 -05:00
parent 6590da5793
commit b5bdae4611
2 changed files with 11 additions and 4 deletions

View File

@ -66,7 +66,13 @@ exports.app_socket = async function socket(request, response) {
try {
message = JSON.parse(event.data);
} catch (error) {
print('WebSocket error:', error, event.data, event.data.length, event.opCode);
print(
'WebSocket error:',
error,
event.data,
event.data.length,
event.opCode
);
return;
}
if (!process && message.action == 'hello') {
@ -155,7 +161,8 @@ exports.app_socket = async function socket(request, response) {
}
}
};
process.app._on_output = (message) => response.send(JSON.stringify(message), 0x1);
process.app._on_output = (message) =>
response.send(JSON.stringify(message), 0x1);
process.app.send();
}