change: security-check, memory-check [untest]
- fix high risk security issues - fix high memory usage - change adb to connection pool single instance Signed-off-by: pakintada@gmail.com <Pakin>
This commit is contained in:
parent
f0619c5a10
commit
4f464a8513
23 changed files with 413 additions and 73 deletions
|
|
@ -61,7 +61,11 @@ type WSMessage = { type: string; payload: any };
|
|||
|
||||
// MAXIMUM LIMIT = 1814355
|
||||
const handlers: Record<string, (payload: any) => void> = {
|
||||
chat: (p) => messages.update((m) => [...m, p]),
|
||||
chat: (p) =>
|
||||
messages.update((m) => {
|
||||
const next = [...m, p];
|
||||
return next.length > 200 ? next.slice(-200) : next;
|
||||
}),
|
||||
ping: (p) => logger.info('ping from server'),
|
||||
recipeResponse: (p) => {
|
||||
let recipe_result = p.result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue