Skip to content

Real-time API doesn't work #42

@wadetregaskis

Description

@wadetregaskis

I'm trying to use the realtime API via Socket.IO (for https://github.com/wadetregaskis/SwiftWeather) and I am able to connect but I never receive any response to anything I send. I do receive pings from the server, so something is actually active on the other end, but the "subscribe" command appears to just be silently ignored by the server…?

The documentation here in this repo isn't all that helpful since it refers specifically and exclusively to a random Node.js library, without actually documenting the protocol in any meaningful way. So I don't really know what the argument to "subscribe" is supposed to be at the Socket.IO layer let-alone the wire layer. The source of https://github.com/owise1/ambient-weather-api seems to imply that something like the string '{ "apiKeys": ["xyz"] }' should work, being the JSON serialisation of a nominal object with an apiKeys property etc. But it doesn't. Nor does any conceivable variation on serialisation format (e.g. single-quotes instead of double-quotes, no quotes, etc). Nor if I send the serialised form as a binary event. Etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions