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
I would expect implementation of this feature to be optional, so it might make sense for it to use separate interface(s) that can take ownership of a request/response and return some stream(-like) resource representing the underlying connection. This could even perhaps live outside of wasi-http itself if we find a good pattern for representing this kind of "interface extension", similar to proposals in #825.
I suppose the obvious alternative here would be protocol-specific interfaces e.g. wasi-websocket, which would be implementable in browsers unlike a generic upgrade mechanism.
Both could also be supported, e.g. a wasi-websocket connection resource that can be obtained either by an upgrade interface that takes ownership of a wasi-http request/response or via a constrained browser-compatible outbound-websocket interface.
Activity
lann commentedon Nov 9, 2024
I suppose the obvious alternative here would be protocol-specific interfaces e.g.
wasi-websocket, which would be implementable in browsers unlike a generic upgrade mechanism.Both could also be supported, e.g. a wasi-websocket
connectionresource that can be obtained either by anupgradeinterface that takes ownership of a wasi-http request/response or via a constrained browser-compatibleoutbound-websocketinterface.