You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only way I was able to get it to work with zetta as is is by copying all event listeners on that upgrade event and wrap it in my own method to pre check the request.
After digging into zetta and trying find a good/decent way to plug into the websocket requests I realized there really isn't one.
My end goal is to validate a peer request based on a query parameter added to the peering request.
With normal http requests to zetta we can plug into argo's request flow but does not work for
upgrade
requests. We handle the upgrade requests here: https://github.com/zettajs/zetta/blob/master/lib/http_server.js#L83-L87The only way I was able to get it to work with zetta as is is by copying all event listeners on that
upgrade
event and wrap it in my own method to pre check the request.Something like: Which of course is not ideal.
My proposal would be to add two methods the httpServer or possibly the runtime. That would like:
@kevinswiber @mdobson Any thoughts?
The text was updated successfully, but these errors were encountered: