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
{{ message }}
This repository has been archived by the owner on May 24, 2023. It is now read-only.
write tcp4 127.0.0.1:4000->127.0.0.1:24754: wsasend: An established connection was aborted by the software in your host machine.
##problem
when i open browser first time all is ok ...
but by refrreshing it can not be established to connnection and was aborted
no data can be exchanged
the code for websocker stablishing is talking with rabbitmq task queue
code :
app.Get("/ws/:id", websocket.New(func(c *websocket.Conn) {
//this chan for connection alive
var forever chan string
Q, err := ch.Consume(
qqq.Name, // queue
"", // consumer
false, // auto-ack
false, // exclusive
false, // no-local
false, // no-wait
nil, // args
)
for d := range Q{
b := d.Body
// log.Printf("msg recv: %s", b)
if err = c.WriteMessage(1, b); err != nil {
log.Println("orderbooks write:", err)
}
}
<-forever
}))
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
write tcp4 127.0.0.1:4000->127.0.0.1:24754: wsasend: An established connection was aborted by the software in your host machine.
##problem
when i open browser first time all is ok ...
but by refrreshing it can not be established to connnection and was aborted
no data can be exchanged
the code for websocker stablishing is talking with rabbitmq task queue
code :
The text was updated successfully, but these errors were encountered: