rts-pubsub

30 views
Skip to first unread message

Davis Ford

unread,
May 6, 2013, 1:03:06 PM5/6/13
to socket...@googlegroups.com
Owen -- there appears to be no way to "pub" from a client, then?

The api.pubsub.emit('event-name', [params]) simply calls local client side handlers for the event...does not tie into the websocket.

Is this meant as is, or just an artifact of the work-in-progress mode?

Owen B

unread,
May 7, 2013, 2:45:37 AM5/7/13
to socket...@googlegroups.com
Hi Davis

It's correct as it is. You can never directly publish anything from the client to other clients for security reasons. Use RPC if you just want to talk to the server, like you did in 0.3.

PubSub only deals with sending messages from the server to one or more clients. I have yet to implement the whole subscribe-to-channel thing, but that's coming soon.

Cheers

Owen
Reply all
Reply to author
Forward
0 new messages