apollo
apollo copied to clipboard
Pass parameters on subscription connected
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