Open UnifySoftTech opened 3 years ago
echo.join('presence-channel') .here((users) { print(users); }).joining((user) { print(user); }).leaving((user) { print(user); }).listen('PresenceEvent', (e) { print(e); });
The .here() does not return an array instead return a PusherEvent which do not let me run for each loop on the users
[[User id=4, data={"id":4.0}], [User id=7, data={"id":7.0}]]
This is the Kind of data i receive when i do print(users);
Any suggestion?.
Echo.socketId() also returning Null
echo.join('presence-channel') .here((users) { print(users); }).joining((user) { print(user); }).leaving((user) { print(user); }).listen('PresenceEvent', (e) { print(e); });
The .here() does not return an array instead return a PusherEvent which do not let me run for each loop on the users
[[User id=4, data={"id":4.0}], [User id=7, data={"id":7.0}]]
This is the Kind of data i receive when i do print(users);
Any suggestion?.
Echo.socketId() also returning Null