Code Monkey home page Code Monkey logo

swiftsocketiodemo's People

Contributors

derekkinsman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swiftsocketiodemo's Issues

What happens if the phone goes to sleep?

If i have a socket.io connection from an iphone to a (node) server, and then the phone turns off its display, can the app still receive socketio messages? is anything special required to do this?

Handshake issues with socket.io v1.x

Hi,
Thank you for this tutorial. It is one of a kind. It seems that Socket.io v1.x changed the handshake. It is no longer the way your doing it, rather GET http[s]://host:port/socket.io/?transport=polling
This returns a file for some reason, let me clarify, when I look at the response header, I see application/octet-stream for the response type. And when I try it from the browser, it serves a file :(
You can see more on handshake details here: http://stackoverflow.com/a/25289378

This obviously breaks your code. I have been trying with different workarounds for over 6 hours and no luck.

Would you be able to take a look and suggest a workaround? Any help is appreciated

the project is no longer compiled on Xcode 6.4

Dear Derek,

it very kind you of you to share this project. i really want to thanks you.. but the issue is that the project is no longer running on swift many of error coming.

kindly update the project for Xcode 6.4

Sample Node Server

Hi,

would it be possible to get a sample of the node js server code?

I'm trying to connect to a server running on port 3001

i changed SRWebSocket.m line 534

 assert(_url.port.unsignedIntValue <= UINT32_MAX);
    uint32_t port = _url.port.unsignedIntValue;
    if (port == 0) {
        if (!_secure) {
            port = 3001;
        } else {
            port = 443;
        }
    }

but still not getting anywhere, a small sample server would be very useful.

Thanks in advance

Wes

Running the Socket.IO server on a different port

Hi and thanks for a nice tutorial :-)

I'm running my server on a different port than yours โ€“ im running it on 3000 for security purposes.

How can i change the port?

Kind Regards,
Anders Almaas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.