{"action":"created","issue":{"url":"https://api.github.com/repos/grrowl/redux-scuttlebutt/issues/6","repository_url":"https://api.github.com/repos/grrowl/redux-scuttlebutt","labels_url":"https://api.github.com/repos/grrowl/redux-scuttlebutt/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/grrowl/redux-scuttlebutt/issues/6/comments","events_url":"https://api.github.com/repos/grrowl/redux-scuttlebutt/issues/6/events","html_url":"https://github.com/grrowl/redux-scuttlebutt/issues/6","id":188073213,"number":6,"title":"using with connect()","user":{"login":"moimikey","id":182661,"avatar_url":"https://avatars.githubusercontent.com/u/182661?v=3","gravatar_id":"","url":"https://api.github.com/users/moimikey","html_url":"https://github.com/moimikey","followers_url":"https://api.github.com/users/moimikey/followers","following_url":"https://api.github.com/users/moimikey/following{/other_user}","gists_url":"https://api.github.com/users/moimikey/gists{/gist_id}","starred_url":"https://api.github.com/users/moimikey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moimikey/subscriptions","organizations_url":"https://api.github.com/users/moimikey/orgs","repos_url":"https://api.github.com/users/moimikey/repos","events_url":"https://api.github.com/users/moimikey/events{/privacy}","received_events_url":"https://api.github.com/users/moimikey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-08T18:51:45Z","updated_at":"2016-11-09T00:51:00Z","closed_at":null,"body":"I'm having some trouble figuring out how to use this with `connect`. is it possible?\r\n\r\n```js\r\nUncaught TypeError: Cannot read property 'connect' of undefined(…)\r\n```\r\n\r\nmy scenario:\r\n\r\n```js\r\n// webpack dev server\r\nnew WebpackDevServer(webpack(config(process.env.NODE_ENV)), {\r\n...\r\n  setup(app) {\r\n    startScuttlebutt(require('http').Server(app))\r\n    log('[GSP] Scuttlebutt started.')\r\n  }\r\n...\r\n```\r\n\r\n```js\r\n// configure store (fn -> store)\r\nimport scuttlebutt from 'redux-scuttlebutt'\r\n...\r\n  const sharedEnhancers = compose(\r\n    applyMiddleware(...middleware, routerMiddleware(history)),\r\n    scuttlebutt()\r\n    ...\r\n  )\r\n...\r\n    finalCreateStore = compose(\r\n      sharedEnhancers,\r\n      devTools\r\n    )(createStore)\r\n...\r\n  const store = finalCreateStore(\r\n    require('./reducers').default,\r\n    Object.create(null)\r\n  )\r\n...\r\n  return store\r\n```\r\n\r\n```js\r\n// index\r\nexport const store = configureStore()\r\nstore.subscribe(start)\r\n...\r\nconst Application = store => {\r\n  return (\r\n    <Provider store={store} key=\"provider\">\r\n      <AppContainer>\r\n        <Router history={history} routes={routes} />\r\n      </AppContainer>\r\n    </Provider>\r\n  )\r\n}\r\n...\r\nlet start = () => render(\r\n  <Application store={store} />,\r\n  rootEl\r\n)\r\n```"},"comment":{"url":"https://api.github.com/repos/grrowl/redux-scuttlebutt/issues/comments/259306342","html_url":"https://github.com/grrowl/redux-scuttlebutt/issues/6#issuecomment-259306342","issue_url":"https://api.github.com/repos/grrowl/redux-scuttlebutt/issues/6","id":259306342,"user":{"login":"moimikey","id":182661,"avatar_url":"https://avatars.githubusercontent.com/u/182661?v=3","gravatar_id":"","url":"https://api.github.com/users/moimikey","html_url":"https://github.com/moimikey","followers_url":"https://api.github.com/users/moimikey/followers","following_url":"https://api.github.com/users/moimikey/following{/other_user}","gists_url":"https://api.github.com/users/moimikey/gists{/gist_id}","starred_url":"https://api.github.com/users/moimikey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moimikey/subscriptions","organizations_url":"https://api.github.com/users/moimikey/orgs","repos_url":"https://api.github.com/users/moimikey/repos","events_url":"https://api.github.com/users/moimikey/events{/privacy}","received_events_url":"https://api.github.com/users/moimikey/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T00:51:00Z","updated_at":"2016-11-09T00:51:00Z","body":"ah. websocket server is _not_ running. hm."}}
{"actor":{"display_login":"moimikey"}}