graphql-ruby-client
Advanced tools
Comparing version 1.4.0 to 1.4.1
# graphql-ruby-client | ||
## 1.4.0 (12 Apr 2017) | ||
## 1.4.1 (19 Sept 2018) | ||
- Add `connectionOptions` to ActionCableLink #1857 | ||
## 1.4.0 (12 Apr 2018) | ||
- Add `PusherLink` for Apollo 2 Subscriptions on Pusher | ||
@@ -6,0 +10,0 @@ - Add `OperationStoreLink` for Apollo 2 persisted queries |
{ | ||
"name": "graphql-ruby-client", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "JavaScript client for graphql-ruby", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,3 +9,8 @@ var ApolloLink = require("apollo-link").ApolloLink | ||
var actionName = options.actionName || "execute" | ||
var connectionParams = options.connectionParams | ||
if (typeof connectionParams !== "object") { | ||
connectionParams = {} | ||
} | ||
return new ApolloLink(function(operation) { | ||
@@ -15,6 +20,6 @@ return new Observable(function(observer) { | ||
var subscription = cable.subscriptions.create({ | ||
var subscription = cable.subscriptions.create(Object.assign({},{ | ||
channel: channelName, | ||
channelId: channelId | ||
}, { | ||
}, connectionParams), { | ||
connected: function() { | ||
@@ -21,0 +26,0 @@ this.perform( |
150291
2066