wynd — 5/3/2022, 2:45:57 PM

The wo3 api is great so far, the user one has so much info its crazy

includes: whats currently there, sidebar + lots of details, last 15 posts with full metadata, a bool of if the user if following themselves (I find this funny) and online is removed, which is sad, but that might be added later, who knows

♥ 5 ↩ 1 💬 14 comments

comments

puppetfox:

im not in wasteof 3 yet =( @jeffala @wynd

5/3/2022, 6:12:03 PM
oren:

jeffalo not jeffala lol

5/4/2022, 3:48:09 PM
non-biased-news:

what is the url for it?

5/3/2022, 5:02:24 PM
wynd:

the beta has a funny new thing where you set the Accept header to “application/json“ but I’ve just been using /__data.json at the end of urls and that also works. I believe the old api domain is still gonna exist though

5/3/2022, 5:05:20 PM
non-biased-news:

thats p[retty cool

5/3/2022, 5:38:35 PM
oren:

There is socket.io for live message count so not too hard to add in online

5/3/2022, 2:49:41 PM
wynd:

yeah It’s possible, but the question is if jeffalo will add it to wo3

5/3/2022, 2:57:09 PM
jeffalo:

the socket.io implementation is mostly a somewhat functional hack. it’s still relying on the old site, and so the new site’s backend can’t send messages to socket.io clients (not beta nor prod).

5/3/2022, 4:33:15 PM
wynd:

websockets maybe? dunno that’s basically what socketio is. also does the backend use node?

5/3/2022, 4:45:45 PM
oren:

Backend of 2.0 is express, 3.0 is sveltekit endpoints

5/3/2022, 5:46:27 PM
doey:

socket.io is just a [very based] websocket library instead of making your own and learning the whole entire websocket format from an obscure pdf document

5/3/2022, 10:14:08 PM
oren:

Will the finished 3.0 site have socket.io?

5/3/2022, 5:48:10 PM
jeffalo:

yeah. i guess i’ll either keep running wasteof2-api, or i’ll develop a wasteof3 companion server just for things that i can’t do in sveltekit.

5/3/2022, 6:15:31 PM
wynd:

Yeah that would be cool

5/3/2022, 7:33:30 PM