New groupme push interface

This commit is contained in:
Karmanyaah Malhotra
2021-05-08 16:59:10 -04:00
parent 96557c9973
commit 6fb58efe17
8 changed files with 73 additions and 54 deletions

View File

@@ -243,9 +243,9 @@ func (user *User) Connect() bool {
if timeout == 0 {
timeout = 20
}
conn := groupme.NewPushSubscription(context.TODO())
conn := groupme.NewPushSubscription(context.Background())
user.Conn = &conn
user.Conn.StartListening(context.TODO())
user.Conn.StartListening(context.TODO(), groupmeExt.NewFayeClient(user.log))
// if err != nil {
// user.log.Errorln("Failed to connect to WhatsApp:", err)
// user.sendMarkdownBridgeAlert("\u26a0 Failed to connect to WhatsApp server. " +