Skip to content

Anton Byrna
itrelease

  • https://meduza.io
  • Russia
  • Joined on Dec 18, 2008
May 26, 2016
@itrelease
May 26, 2016
itrelease commented on pull request phoenixframework/phoenix#1731
@itrelease

@chrismccord fair enough

May 26, 2016
@itrelease
  • @itrelease 03b38d8
    Pass payload from onMessage handler
May 26, 2016
itrelease commented on pull request phoenixframework/phoenix#1731
@itrelease

@chrismccord should default onMessage return just payload or the contract have to be object with payload in it like: onMessage(event, payload, ref)…

May 26, 2016
itrelease commented on pull request phoenixframework/phoenix#1731
@itrelease

@chrismccord sorry, I was passing original data :) yeah your approach works for me

May 26, 2016
itrelease commented on pull request phoenixframework/phoenix#1731
@itrelease

@chrismccord hmm that's odd, I've tried that but still I get original data

May 26, 2016
itrelease commented on pull request phoenixframework/phoenix#1731
@itrelease

@chrismccord but it doesn't affect payload in each individual event, like: channel.on('[event_name]', payload => { // here payload still with origi…

May 26, 2016
itrelease commented on pull request phoenixframework/phoenix#1731
@itrelease

@chrismccord but with this approach we still need to do this for each channel right?

May 26, 2016
itrelease commented on pull request phoenixframework/phoenix#1731
@itrelease

@chrismccord I need keys in payload object to be in camelCase

May 26, 2016
@itrelease
Add transform option
1 commit with 9 additions and 2 deletions
May 26, 2016
Apr 29, 2016
Apr 18, 2016
Mar 25, 2016
Mar 10, 2016
Feb 7, 2016
@itrelease
Something went wrong with that request. Please try again.