forked from cory/tildefriends
js: prettier
This commit is contained in:
parent
6590da5793
commit
b5bdae4611
11
core/app.js
11
core/app.js
@ -66,7 +66,13 @@ exports.app_socket = async function socket(request, response) {
|
|||||||
try {
|
try {
|
||||||
message = JSON.parse(event.data);
|
message = JSON.parse(event.data);
|
||||||
} catch (error) {
|
} 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;
|
return;
|
||||||
}
|
}
|
||||||
if (!process && message.action == 'hello') {
|
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();
|
process.app.send();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user