Open haorendashu opened 5 months ago
This library is using JS API directly, so it's hard to provide http.Hijacker interface for Conn. But WebSocket support can be implemented using Durable Object, so I want to try another approach (without providing http.Hijacker). Thank you for submitting this issue!
Using package
github.com/gorilla/websocket
to server websocket connection. When callupgrader.Upgrade(w, r, nil)
, it return an error:It seems that the response need to implement http.Hijacker interface.