456 Commits

Author SHA1 Message Date
Erik Little
99b673dfa5
Merge pull request #1491 from hsjcom/master
Fix the issue where it takes over 60 seconds to close the socket after a network disconnection
2024-10-01 12:15:25 -04:00
Shaojie Hong
354ed7e5e4
Update SocketEngine.swift
Fix the issue where it takes over 60 seconds to close the socket after a network disconnection, and the problem where the server-side socket takes over 30 seconds to close when the server ends a connection
2024-05-09 16:58:16 +08:00
Erik Little
76b941933e
Merge pull request #1463 from davidkessler-ch/master
fix never running timingOut due to weak self capture
2023-11-13 15:40:51 -05:00
Erik Little
71a627c099
Merge pull request #1375 from emersonsoftware/fix_reconnect_issue
Handling reconnect scenarios properly when socket is hung
2023-11-13 15:40:16 -05:00
David K
a21af1016e
fix never running timingOut due to weak self capture 2023-11-10 23:49:06 +01:00
Erik Little
332a25f241
update to newer starscream 2023-08-25 10:40:32 -04:00
George Navarro
45cc6b9728 Added a useCustomEngine option to control if WebSocket is initialized to use the custom engine or native URLSession web tasks. 2022-07-25 18:13:20 -07:00
Erik Little
173def3cea
Remove travis 2022-07-12 14:55:55 -04:00
Erik Little
2b1cd74f6a
Take weak reference to self in OnAckCallback 2022-07-12 14:34:38 -04:00
Mark Schisler
ec4378ca49
Handling reconnect scenarios properly when socket is hung 2021-08-19 09:45:54 -05:00
Wyatt Mufson
9609774b3a Fix swift warnings 2021-06-17 11:38:43 -04:00
Erik Little
2c78e36ebd
handle version in keyValueToSocketIOClientOption 2021-02-16 09:37:05 -05:00
Erasov Ivan
ef6b63c82f Updated methods signature 2021-02-09 00:13:42 +03:00
Erasov Ivan
c015012783 Added client emit methods with array parameters 2021-02-05 19:14:54 +03:00
Erik Little
8b1149255d
Regenerate docs 2021-01-27 13:57:46 -05:00
Erik Little
2913751beb
update docs, remove other prints 2021-01-27 13:40:07 -05:00
Erik Little
1c2af5a60f
remove print 2021-01-27 13:24:42 -05:00
Erik Little
fde88c10c5
Support both v2 and v3 2021-01-27 13:22:14 -05:00
Erik Little
21290f5752
Start working on migration guide 2020-11-07 19:19:06 -05:00
Erik Little
194642314e
update docs 2020-11-07 18:57:29 -05:00
Erik Little
d7d8903fee
Add ability to send payload with connect 2020-11-07 18:53:06 -05:00
Erik Little
7ce0d99526
Fix tests 2020-11-07 17:06:05 -05:00
Erik Little
c6a6d952e6
Better timeouts 2020-11-07 16:03:29 -05:00
Erik Little
6cd8f79e8b
Support socket.io 3 + starscream 4 2020-11-07 15:13:52 -05:00
Erik Little
a06af14dd9
Add some helpful operators 2019-11-25 14:34:11 -05:00
Erik Little
cb74f6ca55
Merge branch 'master' into development
* master:
  Updates test
  Adds missing character for url percent encoding
2019-10-17 06:06:26 -04:00
Marin Huljev
ae54ea01d0 Adds missing character for url percent encoding 2019-10-14 22:06:31 +02:00
Serhii Alpieiev
1db9232d71 Fixed endless reconnection loop 2019-09-07 18:07:19 +03:00
Erik Little
5dcfe18748
bump version and docs 2019-05-28 09:09:24 -04:00
Erik Little
c1744e9e6f
Merge pull request #1049 from pdupris/enableSOCKSProxy
Add enableSOCKSProxy option to pass to Starscream WebSockets
2019-05-28 08:50:11 -04:00
Erik Little
44682659b6
fix #1178 2019-03-28 07:11:35 -04:00
Erik Little
7219906306
swift 5 2019-03-26 12:20:34 -04:00
Andy
fc4e1802f6 call closeOutEngine to clean up after a ping timeout 2019-02-11 19:01:43 +00:00
Andy
9433050588 config setting and test updates for reconnectWaitMax and randomizationFactor 2019-01-12 22:05:01 +00:00
Andy
49b9a07a95 add configurable exponential backoff 2019-01-12 19:44:51 +00:00
Erik Little
f407beab99
Fix #1147 2019-01-11 12:39:54 -05:00
Valentin Slawicek
e0cbe59a10 Remove unnecessary function calls. 2018-11-07 13:53:25 +01:00
Valentin Slawicek
8f94c038d8 Fix build 2018-11-07 12:47:55 +01:00
Valentin Slawicek
a4b334b6f2 Don’t create empty closures when we don’t need them.
Fixes https://github.com/socketio/socket.io-client-swift/issues/1118.
2018-11-07 12:37:48 +01:00
Valentin Slawicek
5a6a4f02d9 Propagate http header callback from websocket back to client. 2018-10-17 21:38:19 +02:00
Erik Little
75057023cb
clean up emit completion code 2018-10-17 09:55:11 -04:00
Erik Little
e5f3fb13ae
Merge pull request #1097 from cobrowseio/writecompletion
Add optional write completion handler for emit's
2018-10-04 06:56:18 -04:00
Andy
09fc43349f convert SocketData to serialisable socket representation 2018-10-02 21:08:55 +07:00
Andy
b3e305fd14 Add a variadic method for emit completion handlers in swift 2018-10-02 20:55:38 +07:00
Andy
d763fad449 no need to capture completion hander in wrapper 2018-10-02 19:05:22 +07:00
Erik Little
e877bb26c3
check for 200 status code when polling #857 2018-10-02 07:53:36 -04:00
Andy
28fad62ccd wrap completion handler to run on handleQueue 2018-10-02 13:47:03 +07:00
Andy
f9d8595a25 add optional write completion handler for emit's 2018-09-29 16:29:58 +07:00
Erik Little
3bf28cd427
Merge pull request #1080 from flashbreak/master
fix cookies import when create the websocket
2018-09-27 08:33:13 -04:00
Hugo Schouman
867db19bc5 set the right URL in websocket creation 2018-09-05 19:26:35 +02:00