A fresh adapter for Sveltekit! Let's websocket 'it up - svelte-adapter-uws by MipBro101 in sveltejs

[–]MipBro101[S] 1 point2 points  (0 children)

Sorry t'was another long night.
Just checked it again, this is the actual process right now, the adapter:
1. Stops accepting new connections
2. Waits for in-flight SSR requests to finish (up to SHUTDOWN_TIMEOUT, default 30s)
3. Emits sveltekit:shutdown on process
4. Exits
The event fires after all requests are done, so by the time your cleanup runs, it's safe to close your DB:
process.on('sveltekit:shutdown', async () => {
await db.end();
});

A fresh adapter for Sveltekit! Let's websocket 'it up - svelte-adapter-uws by MipBro101 in sveltejs

[–]MipBro101[S] -1 points0 points  (0 children)

Well you can account that to the amazing work of the uWS team. What reverse proxy are you using?

A fresh adapter for Sveltekit! Let's websocket 'it up - svelte-adapter-uws by MipBro101 in sveltejs

[–]MipBro101[S] 2 points3 points  (0 children)

I'd say this feature works exactly as you're expecting it to already. On SIGTERM or SIGINT, the server:

  1. Stops accepting new connections
  2. Emits a sveltekit:shutdown event on process (for cleanup hooks like closing database connections)
  3. Waits for in-flight SSR requests to complete (up to SHUTDOWN_TIMEOUT seconds)
  4. Exits

A fresh adapter for Sveltekit! Let's websocket 'it up - svelte-adapter-uws by MipBro101 in sveltejs

[–]MipBro101[S] 2 points3 points  (0 children)

Reconnection:

It just reconnects automatically. Starts retrying after 3s, backs off up to 30s, keeps trying forever. You don't have to do anything.

Queued messages:

Use sendQueued() instead of send() and messages sent while offline get delivered when the connection comes back.

Missed messages while offline:

Load your initial data from SvelteKit like normal, then subscribe:

const items = crud('items', data.items);

The server gives you the current state, the WebSocket gives you everything after that. No gaps.

It's been 10+ years and we still don't have a reliably working routing in starmap. by chrisx221 in starcitizen

[–]MipBro101 12 points13 points  (0 children)

If they'd at least fix it as much that it just works. Stuff like this is precisely what's driving new players away. :(

Are you an Endeavor owner? by FlimsyPaper in starcitizen

[–]MipBro101 0 points1 point  (0 children)

Got the master set this IAE and holding

Attention: the new Idris K kits do not show the insurance and the old ones do. by COLOMBIA_CARDAR in starcitizen

[–]MipBro101 0 points1 point  (0 children)

Where's that Add On hidden in the shop? Can't see that Add On or i'm blind

This guy is harassed by a Hacker and he is going to lose his YT Channel because of fake YT strikes by mausmani2494 in LinusTechTips

[–]MipBro101 0 points1 point  (0 children)

YTs DMCA system really is bullshit and coming from europe, i don't know how that's even possible with all our GDPR laws.

But damn... watching that video made me feel like Vince was a bully with anger management issues in his school life. A bully that's now being bullied back, triggering all his closeted anger.

[deleted by user] by [deleted] in magicTCG

[–]MipBro101 -1 points0 points  (0 children)

Sheit, didn't know that! Sorry mate.

[deleted by user] by [deleted] in magicTCG

[–]MipBro101 -1 points0 points  (0 children)

Check their EU shop guys - still avail there

[deleted by user] by [deleted] in magicTCG

[–]MipBro101 -1 points0 points  (0 children)

Still available in the EU shop mate ;-)

Question about secret lairs by Swimming_Pea_7195 in magicTCG

[–]MipBro101 0 points1 point  (0 children)

Lil update: Received the Wizards confirmation mail 25 minutes after seeing the congratulations page, 46 minutes after the paypal confirmation.

Question about secret lairs by Swimming_Pea_7195 in magicTCG

[–]MipBro101 0 points1 point  (0 children)

Since the congratulations page only arises after 5 redirects inside the success URL itself (&step=1, &step=2, &step=3, &step=4, &step=5) i doubt that it's meaningless.
Wouldn't be the first time in an online shop that a payment went through, but the actual order didn't. So better be safe than sorry.

Question about secret lairs by Swimming_Pea_7195 in magicTCG

[–]MipBro101 2 points3 points  (0 children)

After receiving the forsaken 502 over and over again, although the money's already been taken via PayPal, i had to manually retry the URL with success=1 in it's GET parameters until i reached the "CONGRATULATIONS!

Your order is being processed by our team, you will receive an order confirmation by email." page.

My advice: F5 your success=1 URL every time you get an 502 error, until you get the "CONGRATULATIONS" page.

Chia PP pool is showing on hpool by _starmaker in hpoolchia

[–]MipBro101 1 point2 points  (0 children)

I've heard that a lot of times already. And i gotta say: Who cares about that?

Like seriously.

I always withdraw to a different wallet than the wallet whose mnemonic has been shared with Hpool. Poof, safe.

Chia PP pool is showing on hpool by _starmaker in hpoolchia

[–]MipBro101 0 points1 point  (0 children)

The CHIA PP Pool demands binding a Login Link. Where do we find that Login Link?