Question about sessions in Prism

48 views
Skip to first unread message

Robert Hall

unread,
May 2, 2013, 10:36:20 AM5/2/13
to socket...@googlegroups.com
To be specific:
 sessionStore
What happens if your app needs no sessions? Is there a scenario for leaving this null/blank/nothing/empty?

Owen B

unread,
May 3, 2013, 3:12:34 PM5/3/13
to socket...@googlegroups.com
So things are slightly different with Prism in 0.4 to 0.3.

In Prism, it's the Realtime Service which determines whether or not to load sessions, not your app directly. So for example, the rts-livereload service doesn't need them, but the rts-rpc and rts-pubsub does.

Regards,

Owen

Robert Hall

unread,
May 4, 2013, 12:14:12 PM5/4/13
to socket...@googlegroups.com
I follow that services might have session requirements. Maybe I'm just being a little dense in the head, but does pubsub always require sessions? I suppose it does.

I'm trying to think of a scenario where "realtime" does != sessions. Throwing this out into the wild #lazyweb.

Thoughts?

Also, does this mean that services are plug n' play in Prism?

Owen B

unread,
May 6, 2013, 5:53:17 AM5/6/13
to socket...@googlegroups.com
Yes pubsub requires is for channels. I just haven't implemented them in rts-pubsub yet, but will do soon. Once finished they will work just like SocketStream 0.3.

rts-livereload doesn't require sessions. If a service doesn't require sessions it will perform faster as no session lookup will be necessary.

As the app developer, all you need to do is specify a session store (or allow it to use the default in-memory store during dev) and you're all set.

Owen
Reply all
Reply to author
Forward
0 new messages