client/src/transportAdapters/pusherAdapter.ts in jason-rails-0.6.8 vs client/src/transportAdapters/pusherAdapter.ts in jason-rails-0.7.0
- old
+ new
@@ -1,12 +1,11 @@
import Pusher from 'pusher-js'
-import { createConsumer } from "@rails/actioncable"
import restClient from '../restClient'
import { v4 as uuidv4 } from 'uuid'
import _ from 'lodash'
export default function pusherAdapter(jasonConfig, handlePayload, dispatch) {
- let consumerId = uuidv4()
+ const consumerId = uuidv4()
const { pusherKey, pusherRegion, pusherChannelPrefix } = jasonConfig
const pusher = new Pusher(pusherKey, {
cluster: 'eu',
forceTLS: true,
\ No newline at end of file