btford / btford/angular-socket-io

connect to socket for specific user

Open
#133 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.5k
Forks
225
PR merge metrics
No merged PRs in 30d

Description

How would I use this to only update the specific user.

Currently the socket I have set up updates a collection for any updates by any user. How would I limit the updates on my view to the ones done by someone logged in with my username (i.e. mine or me on another device.)

Is there a simple way to register for certain updates?

Currently have in my Angular

`socket.syncUpdates('transaction', transactions);`

and in my Node Server

`socket.emit('transaction:save', doc);`

Thanks.
Ben

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.