socketio / socket.io-client-swift

Other
5.19k stars 837 forks source link

Apple Watch OS 6 supported with new websocket API? #1215

Open H1p3ri0n opened 5 years ago

H1p3ri0n commented 5 years ago

The new WatchOS 6 beta now support actual socket connections. Is there any plan to make Socket.io work with Apple Watch? Thanks.

https://developer.apple.com/documentation/watchos_release_notes/watchos_6_beta_3_release_notes

Networking New Features

URLSessionWebSocketTask and URLSessionStreamTask are now available for use in watchOS apps. (49779789)

mspettel13 commented 3 years ago

Barebones websockets have been available in watchOS for over a year now - wanted to check in on this. Is there any plan to get a socket.io implementation working? Or anyone interested in building one? I would be interested in helping out.

angeria commented 3 years ago

Any news on this?

dsngeu commented 3 years ago

@angeria @mspettel13 @timevision can we implement socket connection by any socket library in Apple Watch?

angeria commented 3 years ago

@angeria @mspettel13 @timevision can we implement socket connection by any socket library in Apple Watch?

URLSessionWebSocketTask native since watchOS 6 works pretty well.

m260154117 commented 4 months ago

In order to realize that the Apple watch can send and receive messages like wechat in the case of offline mobile phones, the iOS side and the server side are currently using mqtt protocol, can the native socket of Apple watch be used normally?