its ridiculous how much overly complex #apis js has, and why do these apis use weird callback structures rather than #await #async?

like why the fuck do i need to write:

ws.onopen = function(){

ws.send()

}

ws.onmessage = function(){}

instead of:

await ws.open()

const response = await ws.send()

#mozilla #chrome #google #devs #w3c

can you write proper apis, thanks

Reply to this note

Please Login to reply.

Discussion

No replies yet.