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
Currently, adapter creators have to change code if WSContext or UpgradeWebSocket API interface is changed. Hono provides an interface to implement custom WebSocket adapter. So changing WSContext or UpgradeWebSocket API interface might be a breaking change. For example, #3466 changes an API.
And, WsContext repeats the same implementation between adapters. For example, binaryType: 'arraybuffer' is had by Bun, Deno. The change resolves it.
In order to make WebSocket adapter more changeable, I propose these APIs.
The text was updated successfully, but these errors were encountered:
What is the feature you are proposing?
I propose
createUpgradeWebSocket
helper andWSContext
class.For example, you can implement Deno adapter like this:
Current issues
Currently, adapter creators have to change code if WSContext or UpgradeWebSocket API interface is changed. Hono provides an interface to implement custom WebSocket adapter. So changing WSContext or UpgradeWebSocket API interface might be a breaking change. For example, #3466 changes an API.
And, WsContext repeats the same implementation between adapters. For example,
binaryType: 'arraybuffer'
is had by Bun, Deno. The change resolves it.In order to make WebSocket adapter more changeable, I propose these APIs.
The text was updated successfully, but these errors were encountered: