fix: client socket sometimes sends events before server finished auth
authorxangelo <git@xangelo.ca>
Wed, 14 Jun 2023 09:10:35 +0000 (05:10 -0400)
committerxangelo <git@xangelo.ca>
Wed, 14 Jun 2023 09:12:17 +0000 (05:12 -0400)
commit6d3944fac3864739b383b7a50ade169f91104127
tree49c79cf1f9f5f9d9c2ef292b1b0c61b6f49e53e3
parent0bba9b5b320acee90e9edc439583fdfb55970529
fix: client socket sometimes sends events before server finished auth

The auth process is long and the connection event will fire before it's
complete. This adds a secondary "ready" event for when the socket is
actual ready to start receiving connections.
public/assets/bundle.js
src/client/index.ts
src/server/api.ts