teehanlax / swiftsocketiodemo Goto Github PK
View Code? Open in Web Editor NEWSwift & SocketIO Demo
License: MIT License
Swift & SocketIO Demo
License: MIT License
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?
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
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
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.