Skip to content

Use socket.io-client with npm #4

@danilowanner

Description

@danilowanner

Thanks a lot for your example. I’ve looked into websockets and react native too in the last couple of days.

You might be interested to know that hharnisc has also been working on a ws polyfill that is currently evaluated for integration into the react-native repo:
https://github.com/hharnisc/react-native

This just as a sidenote... to my actual question: Have you tried using the socket.io-client that is available through NPM? I had some issues and failed to make it work. Did you modify your version of the client besides adding a userAgent to the navigator object?

Luckily I got my program and socket working with the socket.io-client you provided with the example. Just wondering how to integrate future versions of the socket.io protocol.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions