Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebSockets on iOS

Tags:

I've read that WebSockets work on iOS 4.2 and above. And I can verify that there is indeed a WebSocket object. But I can't find a single working WebSocket example that works on the phone.

For example http://yaws.hyber.org/websockets_example.yaws will crash the Mobile Safari app. Has anyone got WebSockets working successfully on the phone?

like image 701
probablyCorey Avatar asked Apr 07 '11 00:04

probablyCorey


People also ask

How do WebSockets work in iOS?

WebSockets allow for extremely fast two-way networking communication, which lets you send and receive updates quicker and more often, not to mention securely. WebSocket is a communication protocol that uses sockets, providing duplex communication over a single TCP connection.

What is Socket in iOS Swift?

Socket.IO is a JavaScript library for real-time web applications(Instant messengers, Push Notifications, Online Gaming). Sockets have traditionally been the solution around which most real-time systems are architected, providing a bi-directional communication channel between a client and a server.

Do mobile apps use WebSockets?

Definitely, a WebSocket web app will run on any HTML5-compliant browser, including mobile browsers such as Safari for iOS and Chrome for mobile.


1 Answers

I may have found the solution. Mobile Safari only crashes with websockets when you have setup a proxy over wifi.

like image 123
probablyCorey Avatar answered Oct 21 '22 10:10

probablyCorey