1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

18 commits

Author SHA1 Message Date
Javan Makhmali
c846f43d46 Extract connection monitoring and rewrite as a subscriber 2015-06-25 13:57:40 -04:00
Javan Makhmali
d9d7371c56 Assume subscribers have an identifier 2015-06-25 11:36:40 -04:00
Javan Makhmali
53d0b22aee Switch back to original API and callback naming 2015-06-25 10:32:36 -04:00
Javan Makhmali
c7f00661bf Move connection and subscriber code into their own classes 2015-06-25 10:21:53 -04:00
Javan Makhmali
0f761c0d51 Update API to camel cased equivalent of WebSocket's API 2015-06-24 18:22:16 -04:00
Javan Makhmali
268ee5208c Create JavaScript channels identified by their Ruby class name 2015-06-24 14:26:26 -04:00
Javan Makhmali
b5e0e58fe1 Require Cable.Channel constructors to define their channel name
Function.name is not widely supported, and a function's name can be mangled by a minifier making it an unreliable property to infer the channel name from
2015-06-23 18:16:31 -04:00
David Heinemeier Hansson
f6daf0ef6d Assume channel names include the _channel extension 2015-06-20 16:34:27 +02:00
David Heinemeier Hansson
0e4c2df1e1 Add new convention method for performing channel actions 2015-06-20 16:01:44 +02:00
David Heinemeier Hansson
2258344e0f Switch internal actions to be called commands instead, such that we can use action as the routing word on the user side 2015-06-19 19:05:06 +02:00
Pratik Naik
bdbbe18f3c Clear ping wait timeout when removing the connection 2015-04-03 09:32:22 -05:00
Pratik Naik
63d61051aa Increase the stale timout 2015-03-24 10:24:43 -05:00
Pratik Naik
9264ceb437 Don't call connection#close directly 2015-03-23 15:31:53 -05:00
Pratik Naik
6451fe1408 Call reconnect() when a ping doesnt arrive in expected time 2015-02-26 16:33:41 -06:00
Pratik Naik
89f3fb71c7 Remove existing connection when trying to reconnect to ensure we dont end up with multiple connections 2015-02-26 16:33:17 -06:00
Pratik Naik
d96ea7c5e4 Never stop attempting to reconnect 2015-02-26 15:52:45 -06:00
Pratik Naik
359f006bac Reconnect the websocket if the server doesnt send a ping every 6 seconds 2015-02-26 14:25:34 -06:00
Pratik Naik
2c0c9a17d0 Move assets to the gem 2015-02-12 20:47:26 +05:30