Comments (7)
Can you include some code that doesn't work? Make sure you're using member.id
& member.info
rather than the old member.user_id
etc - that could be the issue. As an example see http://pusher-presence-demo.heroku.com/
from pusher-js.
I'm doing something that boils down to (transcribing from coffeescript):
new Pusher(foo).subscribe(bar).bind('pusher:member_added', this.some_fn) function some_fn(member) { console.log("member:", member); }
and member is null.
edit: the handler is actually in a closure binding it to the instance of the class, but I don't know why that would null member? The pusher debugging output has 'null' being passed to member_added (not my debug output)
from pusher-js.
Nick, sorry for not getting back to you on this one. That code looks fine so I'm not sure what's going on. All I can say is that this seems to work for other people - is coffeescript doing something weird?
from pusher-js.
No problem, I'll try to reduce it down to a test case and get the compiled coffeescript. I agree it looks like it should work...
from pusher-js.
Hi Nick - did you ever get this to work? Can I close this issue?
from pusher-js.
I believe this issue happens if user_info is not provided for a presence user. This should be fixed, but in the meantime, just add user_info (which you should do anyway :)
from pusher-js.
gosh sorry for the late response, it looks like that works fine :)
from pusher-js.
Related Issues (20)
- Error `Unable to resolve module @react-native-community/netinfo` HOT 1
- TypeError: Object(...) is not a function at Object.randomInt HOT 10
- PWA HOT 1
- Constant connection state changes when using other than ws transports HOT 3
- Not actuall stats HOT 6
- Pusher-JS doesnt play well with NextJS 14 : Uncaught SyntaxError: Unexpected token ':' HOT 3
- Providing Custom Handler, Internal Endpoint Still Calls
- Pusher client is not binding correctly on presence channels but on public ones yes HOT 2
- Pusher websocket URL triggering events and sending data HOT 1
- This is a test.
- testing
- PageSpeed Insights Failed: net::ERR_NAME_NOT_RESOLVED HOT 2
- Feature - Attach additional params in `subscribe` method for channel auth
- test123
- test bracatinga
- test samambaia
- test araucaria
- test pinus grandis
- test hortencia
- test hoverboat
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pusher-js.