From 2bb4fdef5efc70327c018e982ff809a29ac6708b Mon Sep 17 00:00:00 2001 From: Richard Macklin Date: Sat, 1 Dec 2018 14:48:24 -0800 Subject: Replace reference to WebSocket global with ActionCable.adapters.WebSocket The WebSocket dependency of ActionCable.Connection was made configurable in 66901c1849efae74c8a58fe0cb36afd487c067cc However, the reference here in Connection#getState was not updated to use the configurable property. This change remedies that and adds a test to verify it. Additionally, it backfills a test to ensure that Connection#open uses the configurable property. --- actioncable/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actioncable/CHANGELOG.md') diff --git a/actioncable/CHANGELOG.md b/actioncable/CHANGELOG.md index c0ab0485f3..e30e07d4a2 100644 --- a/actioncable/CHANGELOG.md +++ b/actioncable/CHANGELOG.md @@ -1,3 +1,7 @@ +* `ActionCable.Connection#getState` now references the configurable + `ActionCable.adapters.WebSocket` property rather than the `WebSocket` global + variable, matching the behavior of `ActionCable.Connection#open`. + * The ActionCable javascript package has been converted from CoffeeScript to ES2015, and we now publish the source code in the npm distribution. -- cgit v1.2.3