fasthttp / websocket

WebSocket implementation for fasthttp.
BSD 2-Clause "Simplified" License
540 stars 55 forks source link

Is there any plan to support websocket client of fasthttp? #36

Closed Quons closed 1 year ago

Quons commented 1 year ago

I am focus on a websocket proxy gateway works,so i need both server and client of websocket. but i notidy that this project support only server side of websocket base on fasthttp,is there any plan to support the client side ?

savsgio commented 1 year ago

Hi @Quons,

I don't rule it out, but for now, i don't have to much time to add support to the client. So, if you need it, a PR is welcome! 😉

g41797 commented 1 year ago

Hi As far as i understand , websocket client (fork of gorilla...) is part of this project and everyone can use it , savsgio - please confirm

joeky888 commented 1 year ago

I can confirm fasthttp websocket client with http proxy works. Tested with https://github.com/joeky888/fpgo

dialer := websocket.Dialer{
    Proxy: http.ProxyURL(&url.URL{
        Scheme: "http", // or "https" depending on your proxy
        Host:   "127.0.0.1:13002",
        Path:   "/",
    }),
}

c, _, err := dialer.Dial("wss://ws.bitget.com/mix/v1/stream", nil)
if err != nil {
    log.Fatal("dial:", err)
}
defer c.Close()

I guess we can close this issue, unless I missed something.

g41797 commented 1 year ago

you did

fasthttp/websocket is fork of non-maintained gorilla/websocket gorilla/websocket has 28 opened issues and 12 PRs

savsgio commented 1 year ago

Hi @g41797 and @joeky888,

I'm trying to maintain the fork as much I can. So if you need to resolve some issue from gorilla project and it be here, you can make a PR about it or create an issue here to try to fix it.

PR are always welcome. 😉

Thank you so much! And sorry for my delayed answer!