vanita5 / mastodon-api

Mastodon API Client Library
MIT License
122 stars 21 forks source link

Failed to use streaming/user using js #14

Closed dru18 closed 4 years ago

dru18 commented 5 years ago

I'm trying to use GET /api/v1/streaming/user

but Failed to use streaming/user using js

Expected behaviour

that should have Return events that are relevant to the authorized user, i.e. home timeline and notifications to me

Actual behaviour

but gave me this error after 5 seconds of hold https://github.com/dru18/druBot/blob/master/issue/screenshot/error_streaming_user.png

Steps to reproduce the problem

i'm using this code to get steaming/user https://github.com/dru18/druBot/blob/master/issue/druStream.js

Specifications

i'm using OS: Mint 18.3 sylvia

vanita5 commented 4 years ago

From the error it looks like you use an outdated version of node. Make sure to use node v6.0.0 or higher.