apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Pass parameters on subscription connected

Open brightchip opened this issue 5 years ago • 0 comments

How do I pass user id or token when subscribe to the Apollo server ?

I find it so hard to do a simple subscription like displaying Online users . As I check some tuts and they were using heartbeat for the connection checking. But isn't Websocket has the events. Maybe I'll just use the native Websocket to do such a simple function for which Apollo can't do it easily.

Then I'd like to remove the wss module in the Nuxt/apollo as it was bundled inside and takes Kbs

brightchip avatar Oct 10 '20 07:10 brightchip