```coffeescript
App.todo = App.cable.subscriptions.create "TodoChannel",
  connected: ->
    # Called when the subscription is ready for use on the server

  disconnected: ->
    # Called when the subscription has been terminated by the server
```

Send explicit parameters in channel subscription
user
```coffeescript
App.todo = App.cable.subscriptions.create {
  channel: "TodoChannel"
  },
  connected: ->
    # Called when the subscription is ready for use on the server

  disconnected: ->
    # Called when the subscription has been terminated by the server
```
assistant