Assaf Arkin

Results 6 issues of Assaf Arkin

- [ ] Spin URL constructor to own module - [x] URL constructor: cache path to regexp and list of path parameters - [x] URL constructor: add query parameters for...

Useful for managing context if you have middleware or other composition - `context` is just an object with key/value pairs - `context.user` is the current user (readonly) - `context.timeout` is...

Common usage for warmup is to fetch resources. - `prefetch.add(url, fetcher?)` adds a resource with the URL and immediately starts loading it - `prefetch.get(url)` waits for resource to load and...

https://developer.mozilla.org/en-US/docs/Web/API/Push_API Conceptually should work similarly to WebSocket where you send a notification to the current user or specific user: ```ts await webPush.send(myMessage); await webPush.to(userId).send(myMessage); ``` There needs to be an...

The idea is to have specific message handler. Maybe: - `socket/action_join.ts` for all messages that contain `action: "join"` - `socket/[room].ts` for all messages that contain the property `room` (any value)...

https://docs.aws.amazon.com/lambda/latest/operatorguide/sqs-retries.html ```ts export const config = { retries: 5; delay: "1m"; }; ``` - Do we use "retries" or "attempts" (3 retries = 4 attempts to process)? - What's a...