Skip to content

Fix reply timeouts - #37

Merged
dsrees merged 3 commits into
dsrees:masterfrom
dustinconrad:master
Mar 4, 2019
Merged

Fix reply timeouts#37
dsrees merged 3 commits into
dsrees:masterfrom
dustinconrad:master

Conversation

@dustinconrad

@dustinconraddustinconrad commented Feb 17, 2019

Copy link
Copy Markdown
Contributor

This should fix issue #36

@dsrees

Copy link
Copy Markdown
Owner

I'm not 100% sure that this is correct. Let me look into this a little further

@dustinconrad

Copy link
Copy Markdown
ContributorAuthor

@dsrees is there anything I can do here to get this moving? Right now I have a hack in place to manually catch the timeout event that is being missed buy the library:

channel.on("") {
channel.off(it.ref)
}

@dsreesdsrees left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dustinconrad sorry for not being able to get to this sooner. I dug more into this and your solution is correct. I just wanted to double check. Made a small syntax change request and then i can get this merged and released today


refEvent?.let {
val message = PhxMessage(it, "", "", mutPayload)
val message = PhxMessage(it, "", it, mutPayload)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make a change to clean this up a bit and then it should be good to go

refEvent?.let { safeRefEvent ->val message =PhxMessage("", "", safeRefEvent, mutPayload)
this.channel.trigger(message)
}

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed it up but opted to use named parameters instead of passing in the empty string for two of them

@dsrees
dsrees merged commit d7acb33 into dsrees:masterMar 4, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@dustinconrad@dsrees