Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket message is not sending #469

Open
Surekha95 opened this issue Jun 6, 2024 · 0 comments
Open

Websocket message is not sending #469

Surekha95 opened this issue Jun 6, 2024 · 0 comments

Comments

@Surekha95
Copy link

I'm trying to send some web socket message when StreamChannelCodecs throws error, but it is not sending and written error as
time="2024-06-06T17:44:17+05:30" level=error msg="write tcp 192.168.124.129:8084->192.168.124.128:63796: i/o timeout" call=Send channel=1 func=HTTPAPIServerStreamMSE module=http_mse stream=demo0

I have updated like this
defer Storage.ClientDelete(c.Param("uuid"), cid, c.Param("channel"))
codecs, err := Storage.StreamChannelCodecs(c.Param("uuid"), c.Param("channel"))
if err != nil {
requestLogger.WithFields(logrus.Fields{
"call": "StreamCodecs",
}).Errorln(err.Error())
//sendErrorMessage(conn, requestLogger, "StreamCodecs")
err := wsutil.WriteServerMessage(conn, ws.OpBinary, []byte{8})
if err != nil {
requestLogger.WithFields(logrus.Fields{
"call": "Send",
}).Errorln(err.Error())
}
return
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant