canjs / can-connect-feathers

The FeathersJS client library for DoneJS and can-connect
https://canjs.com/doc/can-connect-feathers.html
MIT License
10 stars 4 forks source link

Session.get() shouldn't call authenticate in the SSR environment #37

Closed marshallswain closed 7 years ago

marshallswain commented 7 years ago

Update this if statement in can-connect-feathers to check for !window.doneSsr. This will prevent unnecessary requests, speeding up page response times. It will also keep sockets from being authenticated on the server when Session.get is called.

marshallswain commented 7 years ago

Closed in https://github.com/canjs/can-connect-feathers/pull/39