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
// Setup, connection handling, etc.b:=bytes.NewBufferString("event json DTMF\n")
b.WriteTo(conn)
// Some other code and then this runs in a goroutine for usfor {
msg, err:=conn.ReadMessage()
// For JSON events this ends up being ""msgType:=msg.GetHeader("Content-Type")
switchmsgType {
case"text/disconnect-notice":
done<-truecase"text/event-plain":
// assuming "event plain DTMF" is sent instead of JSON this will triggercase"text/event-json":
// This will never trigger
}
//This is my current hackifeventName, ok:=msg.Headers["Event-Name"]; ok {
switcheventName {
case"DTMF":
logger.Errorf("DTMF: %s", msg.Headers["DTMF-Digit"])
}
}
}
Our current version of gesl:
revision = "1cd1251c682b6645e93bdc58ba48de5ed75fbd48"
version = "1.0"
The text was updated successfully, but these errors were encountered:
Sample code:
Our current version of gesl:
revision = "1cd1251c682b6645e93bdc58ba48de5ed75fbd48"
version = "1.0"
The text was updated successfully, but these errors were encountered: