Bogdan Ungureanu

Results 293 comments of Bogdan Ungureanu

Why don't you use [github.com/gorilla/websocket](https://github.com/gorilla/websocket) ?

I can give it a try you want. And yes httputil package seems to have support for websocket.

I've made it in a working state. see [github.com/ubogdan/hetty](https://github.com/ubogdan/hetty/commit/e8bb522e1a04ac17628ace31cd0b4075216e1aab) . Please let me know where does the websocket communication should be stored since we have requests and responses.

websocket.go may require a rewrite since it's very messy at this time. The returning header may be important since websocket has a text protocol and a binary protocol. see: [gorilla/websocket](https://github.com/gorilla/websocket/blob/c3dd95aea9779669bb3daafbd84ee0530c8ce1c1/conn.go#L61-L82)...

@dstotijn Both packages are doing a Connection Upgrade and they are joining the connections but they have 0 knowledge of the data they pass in or out. I guess the...

@dstotijn I guess there is no update for the interceptor module or a place where I can connect the WebSocket decoder in order to store the communication into the database.

Why do you want to do this? The whole meaning of documenting the API is to help users develop faster by running the calls in the web UI.

:smile: Why can't you use a production boolean variable to register swagger only for production? ``` func main() { r := gin.New() r.GET("/v2/testapi/get-string-by-int/:some_id", api.GetStringByInt) r.GET("/v2/testapi/get-struct-array-by-string/:some_id", api.GetStructArrayByString) if (!production) { url...

The host parameter should be left alone and everything should be fine. If you intend to set the Host use an FQDN value instead of an IP address.