diff --git a/.gitignore b/.gitignore index b752b89..c059530 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ node_modules coverage build dist -react-native +/react-native .rpt2_cache # misc diff --git a/CHANGELOG.md b/CHANGELOG.md index 51a4326..b6c133b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,38 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [v6.0.2](https://github.com/mayteio/use-pusher/compare/v6.0.1...v6.0.2) + +> 23 July 2020 + +- ✨ allow channel to be undefined across hooks that take a channel argument [`1162edf`](https://github.com/mayteio/use-pusher/commit/1162edfd9b1688f3213d7789c59497c0d96a72e4) + +#### [v6.0.1](https://github.com/mayteio/use-pusher/compare/v6.0.0...v6.0.1) + +> 22 July 2020 + +- 📦 Update changelog [`41daf31`](https://github.com/mayteio/use-pusher/commit/41daf3110396e7854d96b3ebf1be2cd705303dd4) +- 📦 include netlify deployment in docs script [`eba9ccd`](https://github.com/mayteio/use-pusher/commit/eba9ccdd147035c7ab3f1c82e72378d3ed397922) + +### [v6.0.0](https://github.com/mayteio/use-pusher/compare/v5.1.0...v6.0.0) + +> 22 July 2020 + +- ✨ react native support [`#7`](https://github.com/mayteio/use-pusher/pull/7) +- Bump websocket-extensions from 0.1.3 to 0.1.4 in /example [`#12`](https://github.com/mayteio/use-pusher/pull/12) +- Bump acorn from 5.7.3 to 5.7.4 in /example [`#9`](https://github.com/mayteio/use-pusher/pull/9) +- ♻️ Loosen channelName requirement in use(presence)Channel to allow channelName to be undefined (plus tests) [`ca6e1af`](https://github.com/mayteio/use-pusher/commit/ca6e1af6b3c2253a1f915a88f44747529d46611d) +- ✍️ Document new changes [`573f7e3`](https://github.com/mayteio/use-pusher/commit/573f7e3c60345b738ab97c6affe91e7351ba136f) + +#### [v5.1.0](https://github.com/mayteio/use-pusher/compare/v5.0.0...v5.1.0) + +> 11 July 2020 + +- Bump acorn from 5.7.3 to 5.7.4 [`#8`](https://github.com/mayteio/use-pusher/pull/8) +- 📦 upgrade dependencies [`e029fe7`](https://github.com/mayteio/use-pusher/commit/e029fe71c06c062c464edcfc1af7d86ad2b86325) +- ✨ unsubscribe from channel on effect cleanup [`2680446`](https://github.com/mayteio/use-pusher/commit/268044619e47101579c87fedcccd59a69a0980fa) +- ✨ add 'me' and 'count' to presenceChannel return [`80c017b`](https://github.com/mayteio/use-pusher/commit/80c017b337d5b62f107e662c43902483a0c2485e) + ### [v5.0.0](https://github.com/mayteio/use-pusher/compare/v4.1.5...v5.0.0) > 23 June 2020 @@ -44,13 +76,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### [v4.1.0](https://github.com/mayteio/use-pusher/compare/v4.0.1...v4.1.0) -<<<<<<< HEAD - -> # 27 February 2020 -> -> 26 February 2020 -> -> > > > > > > master +> 27 February 2020 - ✨ removed local mocks, migrate to pusher-js-mock. Not happy with the tests. [`8d09648`](https://github.com/mayteio/use-pusher/commit/8d09648b5ca4a12ce709704dca0a4dba574eba0d) @@ -126,17 +152,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### [v3.0.6](https://github.com/mayteio/use-pusher/compare/v3.0.5...v3.0.6) -> 4 June 2020 +> 21 January 2020 #### [v3.0.5](https://github.com/mayteio/use-pusher/compare/v3.0.4...v3.0.5) -<<<<<<< HEAD - -> # 14 February 2020 -> -> 13 February 2020 -> -> > > > > > > master +> 14 February 2020 - 🏷 use official typescript typings [`d3b5d4f`](https://github.com/mayteio/use-pusher/commit/d3b5d4f7acc5d8d0a593ebf752d7d23fe94a58c5) - udpate docs [`ac90b4d`](https://github.com/mayteio/use-pusher/commit/ac90b4d9cfe4513eaf998c8898f5ba7f1c95c620) @@ -166,7 +186,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). > 29 October 2019 -- ♻️ improve DX: `useEvent<T>(data?: T)` [`42bb95a`](https://github.com/mayteio/use-pusher/commit/42bb95a48bb8b42c038166b5b557fea446d84607) +- ♻️ improve DX: `useEvent<T>(data?: T)` [`42bb95a`](https://github.com/mayteio/use-pusher/commit/42bb95a48bb8b42c038166b5b557fea446d84607) ### [v2.0.0](https://github.com/mayteio/use-pusher/compare/v1.1.5...v2.0.0) @@ -251,7 +271,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). > 17 August 2019 -- remove **tests** from dist [`3bf4195`](https://github.com/mayteio/use-pusher/commit/3bf4195df85b7f4903fdd0b264e95e2199fdcc51) +- remove __tests__ from dist [`3bf4195`](https://github.com/mayteio/use-pusher/commit/3bf4195df85b7f4903fdd0b264e95e2199fdcc51) #### [v1.0.4](https://github.com/mayteio/use-pusher/compare/v1.0.3...v1.0.4) diff --git a/docs/assets/js/search.js b/docs/assets/js/search.js index 579619d..a8654af 100644 --- a/docs/assets/js/search.js +++ b/docs/assets/js/search.js @@ -1,3 +1,3 @@ var typedoc = typedoc || {}; typedoc.search = typedoc.search || {}; - typedoc.search.data = {"kinds":{"1":"External module","32":"Variable","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":1,"name":"\"types\"","url":"modules/_types_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":256,"name":"PusherContextValues","url":"interfaces/_types_.pushercontextvalues.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"types\""},{"id":2,"kind":1024,"name":"client","url":"interfaces/_types_.pushercontextvalues.html#client","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"types\".PusherContextValues"},{"id":3,"kind":1024,"name":"triggerEndpoint","url":"interfaces/_types_.pushercontextvalues.html#triggerendpoint","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"types\".PusherContextValues"},{"id":4,"kind":256,"name":"PusherProviderProps","url":"interfaces/_types_.pusherproviderprops.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"types\""},{"id":5,"kind":1024,"name":"clientKey","url":"interfaces/_types_.pusherproviderprops.html#clientkey","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"types\".PusherProviderProps"},{"id":6,"kind":1024,"name":"cluster","url":"interfaces/_types_.pusherproviderprops.html#cluster","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"\"types\".PusherProviderProps"},{"id":7,"kind":1024,"name":"triggerEndpoint","url":"interfaces/_types_.pusherproviderprops.html#triggerendpoint","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"types\".PusherProviderProps"},{"id":8,"kind":1024,"name":"defer","url":"interfaces/_types_.pusherproviderprops.html#defer","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"types\".PusherProviderProps"},{"id":9,"kind":1024,"name":"value","url":"interfaces/_types_.pusherproviderprops.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"types\".PusherProviderProps"},{"id":10,"kind":1024,"name":"activityTimeout","url":"interfaces/_types_.pusherproviderprops.html#activitytimeout","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":11,"kind":1024,"name":"enableStats","url":"interfaces/_types_.pusherproviderprops.html#enablestats","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":12,"kind":1024,"name":"disableStats","url":"interfaces/_types_.pusherproviderprops.html#disablestats","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":13,"kind":1024,"name":"authEndpoint","url":"interfaces/_types_.pusherproviderprops.html#authendpoint","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":14,"kind":1024,"name":"auth","url":"interfaces/_types_.pusherproviderprops.html#auth","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":15,"kind":1024,"name":"authTransport","url":"interfaces/_types_.pusherproviderprops.html#authtransport","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":16,"kind":1024,"name":"authorizer","url":"interfaces/_types_.pusherproviderprops.html#authorizer","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":17,"kind":1024,"name":"disabledTransports","url":"interfaces/_types_.pusherproviderprops.html#disabledtransports","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":18,"kind":1024,"name":"enabledTransports","url":"interfaces/_types_.pusherproviderprops.html#enabledtransports","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":19,"kind":1024,"name":"encrypted","url":"interfaces/_types_.pusherproviderprops.html#encrypted","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":20,"kind":1024,"name":"forceTLS","url":"interfaces/_types_.pusherproviderprops.html#forcetls","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":21,"kind":1024,"name":"ignoreNullOrigin","url":"interfaces/_types_.pusherproviderprops.html#ignorenullorigin","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":22,"kind":1024,"name":"pongTimeout","url":"interfaces/_types_.pusherproviderprops.html#pongtimeout","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":23,"kind":1024,"name":"statsHost","url":"interfaces/_types_.pusherproviderprops.html#statshost","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":24,"kind":1024,"name":"timelineParams","url":"interfaces/_types_.pusherproviderprops.html#timelineparams","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":25,"kind":1024,"name":"unavailable_timeout","url":"interfaces/_types_.pusherproviderprops.html#unavailable_timeout","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":26,"kind":1024,"name":"wsHost","url":"interfaces/_types_.pusherproviderprops.html#wshost","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":27,"kind":1024,"name":"httpHost","url":"interfaces/_types_.pusherproviderprops.html#httphost","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":28,"kind":1024,"name":"wsPath","url":"interfaces/_types_.pusherproviderprops.html#wspath","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":29,"kind":1024,"name":"wsPort","url":"interfaces/_types_.pusherproviderprops.html#wsport","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":30,"kind":1024,"name":"wssPort","url":"interfaces/_types_.pusherproviderprops.html#wssport","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":31,"kind":1024,"name":"httpPort","url":"interfaces/_types_.pusherproviderprops.html#httpport","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":32,"kind":1024,"name":"httpsPort","url":"interfaces/_types_.pusherproviderprops.html#httpsport","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"\"types\".PusherProviderProps"},{"id":33,"kind":1,"name":"\"PusherProvider\"","url":"modules/_pusherprovider_.html","classes":"tsd-kind-external-module"},{"id":34,"kind":32,"name":"PusherContext","url":"modules/_pusherprovider_.html#pushercontext","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"PusherProvider\""},{"id":35,"kind":32,"name":"__PusherContext","url":"modules/_pusherprovider_.html#__pushercontext","classes":"tsd-kind-variable tsd-parent-kind-external-module","parent":"\"PusherProvider\""},{"id":36,"kind":64,"name":"PusherProvider","url":"modules/_pusherprovider_.html#pusherprovider","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"PusherProvider\""},{"id":37,"kind":1,"name":"\"mocks\"","url":"modules/_mocks_.html","classes":"tsd-kind-external-module"},{"id":38,"kind":128,"name":"PusherChannelMock","url":"classes/_mocks_.pusherchannelmock.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"mocks\""},{"id":39,"kind":1024,"name":"callbacks","url":"classes/_mocks_.pusherchannelmock.html#callbacks","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"mocks\".PusherChannelMock"},{"id":40,"kind":65536,"name":"__type","url":"classes/_mocks_.pusherchannelmock.html#callbacks.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"\"mocks\".PusherChannelMock.callbacks"},{"id":41,"kind":1024,"name":"name","url":"classes/_mocks_.pusherchannelmock.html#name","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"mocks\".PusherChannelMock"},{"id":42,"kind":512,"name":"constructor","url":"classes/_mocks_.pusherchannelmock.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"mocks\".PusherChannelMock"},{"id":43,"kind":2048,"name":"bind","url":"classes/_mocks_.pusherchannelmock.html#bind","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"mocks\".PusherChannelMock"},{"id":44,"kind":2048,"name":"unbind","url":"classes/_mocks_.pusherchannelmock.html#unbind","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"mocks\".PusherChannelMock"},{"id":45,"kind":2048,"name":"emit","url":"classes/_mocks_.pusherchannelmock.html#emit","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"mocks\".PusherChannelMock"},{"id":46,"kind":2048,"name":"trigger","url":"classes/_mocks_.pusherchannelmock.html#trigger","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"mocks\".PusherChannelMock"},{"id":47,"kind":128,"name":"PusherPresenceChannelMock","url":"classes/_mocks_.pusherpresencechannelmock.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"mocks\""},{"id":48,"kind":1024,"name":"members","url":"classes/_mocks_.pusherpresencechannelmock.html#members","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"mocks\".PusherPresenceChannelMock"},{"id":49,"kind":1024,"name":"myID","url":"classes/_mocks_.pusherpresencechannelmock.html#myid","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"mocks\".PusherPresenceChannelMock"},{"id":50,"kind":512,"name":"constructor","url":"classes/_mocks_.pusherpresencechannelmock.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"\"mocks\".PusherPresenceChannelMock"},{"id":51,"kind":1024,"name":"callbacks","url":"classes/_mocks_.pusherpresencechannelmock.html#callbacks","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"\"mocks\".PusherPresenceChannelMock"},{"id":52,"kind":65536,"name":"__type","url":"classes/_mocks_.pusherpresencechannelmock.html#callbacks.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"\"mocks\".PusherPresenceChannelMock.callbacks"},{"id":53,"kind":1024,"name":"name","url":"classes/_mocks_.pusherpresencechannelmock.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"\"mocks\".PusherPresenceChannelMock"},{"id":54,"kind":2048,"name":"bind","url":"classes/_mocks_.pusherpresencechannelmock.html#bind","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"mocks\".PusherPresenceChannelMock"},{"id":55,"kind":2048,"name":"unbind","url":"classes/_mocks_.pusherpresencechannelmock.html#unbind","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"mocks\".PusherPresenceChannelMock"},{"id":56,"kind":2048,"name":"emit","url":"classes/_mocks_.pusherpresencechannelmock.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"mocks\".PusherPresenceChannelMock"},{"id":57,"kind":2048,"name":"trigger","url":"classes/_mocks_.pusherpresencechannelmock.html#trigger","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"mocks\".PusherPresenceChannelMock"},{"id":58,"kind":128,"name":"PusherMock","url":"classes/_mocks_.pushermock.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"mocks\""},{"id":59,"kind":1024,"name":"key","url":"classes/_mocks_.pushermock.html#key","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"mocks\".PusherMock"},{"id":60,"kind":1024,"name":"config","url":"classes/_mocks_.pushermock.html#config","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"mocks\".PusherMock"},{"id":61,"kind":1024,"name":"channels","url":"classes/_mocks_.pushermock.html#channels","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"mocks\".PusherMock"},{"id":62,"kind":65536,"name":"__type","url":"classes/_mocks_.pushermock.html#channels.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"\"mocks\".PusherMock.channels"},{"id":63,"kind":512,"name":"constructor","url":"classes/_mocks_.pushermock.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"mocks\".PusherMock"},{"id":64,"kind":2048,"name":"channel","url":"classes/_mocks_.pushermock.html#channel","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"mocks\".PusherMock"},{"id":65,"kind":2048,"name":"subscribe","url":"classes/_mocks_.pushermock.html#subscribe","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"mocks\".PusherMock"},{"id":66,"kind":2048,"name":"unsubscribe","url":"classes/_mocks_.pushermock.html#unsubscribe","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"mocks\".PusherMock"},{"id":67,"kind":2048,"name":"disconnect","url":"classes/_mocks_.pushermock.html#disconnect","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"mocks\".PusherMock"},{"id":68,"kind":4194304,"name":"CallbackSignature","url":"modules/_mocks_.html#callbacksignature","classes":"tsd-kind-type-alias tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"mocks\""},{"id":69,"kind":65536,"name":"__type","url":"modules/_mocks_.html#callbacksignature.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"\"mocks\".CallbackSignature"},{"id":70,"kind":1,"name":"\"usePusher\"","url":"modules/_usepusher_.html","classes":"tsd-kind-external-module"},{"id":71,"kind":64,"name":"usePusher","url":"modules/_usepusher_.html#usepusher","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"usePusher\""},{"id":72,"kind":32,"name":"NOT_IN_CONTEXT_WARNING","url":"modules/_usepusher_.html#not_in_context_warning","classes":"tsd-kind-variable tsd-parent-kind-external-module","parent":"\"usePusher\""},{"id":73,"kind":1,"name":"\"useChannel\"","url":"modules/_usechannel_.html","classes":"tsd-kind-external-module"},{"id":74,"kind":64,"name":"useChannel","url":"modules/_usechannel_.html#usechannel","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"useChannel\""},{"id":75,"kind":1,"name":"\"useClientTrigger\"","url":"modules/_useclienttrigger_.html","classes":"tsd-kind-external-module"},{"id":76,"kind":64,"name":"useClientTrigger","url":"modules/_useclienttrigger_.html#useclienttrigger","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"useClientTrigger\""},{"id":77,"kind":1,"name":"\"useEvent\"","url":"modules/_useevent_.html","classes":"tsd-kind-external-module"},{"id":78,"kind":64,"name":"useEvent","url":"modules/_useevent_.html#useevent","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"useEvent\""},{"id":79,"kind":1,"name":"\"usePresenceChannel\"","url":"modules/_usepresencechannel_.html","classes":"tsd-kind-external-module"},{"id":80,"kind":64,"name":"usePresenceChannel","url":"modules/_usepresencechannel_.html#usepresencechannel","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"usePresenceChannel\""},{"id":81,"kind":1,"name":"\"useTrigger\"","url":"modules/_usetrigger_.html","classes":"tsd-kind-external-module"},{"id":82,"kind":64,"name":"useTrigger","url":"modules/_usetrigger_.html#usetrigger","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"useTrigger\""}]}; \ No newline at end of file + typedoc.search.data = {"kinds":{"1":"External module","32":"Variable","64":"Function","256":"Interface","1024":"Property","65536":"Type literal","4194304":"Type alias","16777216":"Reference"},"rows":[{"id":0,"kind":1,"name":"\"PusherProvider\"","url":"modules/_pusherprovider_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":32,"name":"PusherContext","url":"modules/_pusherprovider_.html#pushercontext","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"PusherProvider\""},{"id":2,"kind":32,"name":"__PusherContext","url":"modules/_pusherprovider_.html#__pushercontext","classes":"tsd-kind-variable tsd-parent-kind-external-module","parent":"\"PusherProvider\""},{"id":3,"kind":64,"name":"PusherProvider","url":"modules/_pusherprovider_.html#pusherprovider","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"PusherProvider\""},{"id":4,"kind":1,"name":"\"react-native/PusherProvider\"","url":"modules/_react_native_pusherprovider_.html","classes":"tsd-kind-external-module"},{"id":5,"kind":16777216,"name":"__PusherContext","url":"modules/_react_native_pusherprovider_.html#__pushercontext","classes":"tsd-kind-reference tsd-parent-kind-external-module","parent":"\"react-native/PusherProvider\""},{"id":6,"kind":64,"name":"PusherProvider","url":"modules/_react_native_pusherprovider_.html#pusherprovider","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"react-native/PusherProvider\""},{"id":7,"kind":1,"name":"\"testUtils\"","url":"modules/_testutils_.html","classes":"tsd-kind-external-module"},{"id":8,"kind":64,"name":"actAndFlushPromises","url":"modules/_testutils_.html#actandflushpromises","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"testUtils\""},{"id":9,"kind":64,"name":"renderHookWithProvider","url":"modules/_testutils_.html#renderhookwithprovider","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"testUtils\""},{"id":10,"kind":64,"name":"makeAuthPusherConfig","url":"modules/_testutils_.html#makeauthpusherconfig","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"testUtils\""},{"id":11,"kind":1,"name":"\"usePusher\"","url":"modules/_usepusher_.html","classes":"tsd-kind-external-module"},{"id":12,"kind":64,"name":"usePusher","url":"modules/_usepusher_.html#usepusher","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"usePusher\""},{"id":13,"kind":32,"name":"NOT_IN_CONTEXT_WARNING","url":"modules/_usepusher_.html#not_in_context_warning","classes":"tsd-kind-variable tsd-parent-kind-external-module","parent":"\"usePusher\""},{"id":14,"kind":1,"name":"\"useChannel\"","url":"modules/_usechannel_.html","classes":"tsd-kind-external-module"},{"id":15,"kind":64,"name":"useChannel","url":"modules/_usechannel_.html#usechannel","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"useChannel\""},{"id":16,"kind":32,"name":"NO_CHANNEL_NAME_ERROR","url":"modules/_usechannel_.html#no_channel_name_error","classes":"tsd-kind-variable tsd-parent-kind-external-module","parent":"\"useChannel\""},{"id":17,"kind":1,"name":"\"useClientTrigger\"","url":"modules/_useclienttrigger_.html","classes":"tsd-kind-external-module"},{"id":18,"kind":64,"name":"useClientTrigger","url":"modules/_useclienttrigger_.html#useclienttrigger","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"useClientTrigger\""},{"id":19,"kind":1,"name":"\"useEvent\"","url":"modules/_useevent_.html","classes":"tsd-kind-external-module"},{"id":20,"kind":64,"name":"useEvent","url":"modules/_useevent_.html#useevent","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"useEvent\""},{"id":21,"kind":1,"name":"\"usePresenceChannel\"","url":"modules/_usepresencechannel_.html","classes":"tsd-kind-external-module"},{"id":22,"kind":256,"name":"usePresenceChannelValue","url":"interfaces/_usepresencechannel_.usepresencechannelvalue.html","classes":"tsd-kind-interface tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"usePresenceChannel\""},{"id":23,"kind":1024,"name":"channel","url":"interfaces/_usepresencechannel_.usepresencechannelvalue.html#channel","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"usePresenceChannel\".usePresenceChannelValue"},{"id":24,"kind":4194304,"name":"PresenceChannelState","url":"modules/_usepresencechannel_.html#presencechannelstate","classes":"tsd-kind-type-alias tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"usePresenceChannel\""},{"id":25,"kind":65536,"name":"__type","url":"modules/_usepresencechannel_.html#presencechannelstate.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"\"usePresenceChannel\".PresenceChannelState"},{"id":26,"kind":32,"name":"members","url":"modules/_usepresencechannel_.html#presencechannelstate.__type-1.members","classes":"tsd-kind-variable tsd-parent-kind-type-literal tsd-is-not-exported","parent":"\"usePresenceChannel\".PresenceChannelState.__type"},{"id":27,"kind":32,"name":"me","url":"modules/_usepresencechannel_.html#presencechannelstate.__type-1.me","classes":"tsd-kind-variable tsd-parent-kind-type-literal tsd-is-not-exported","parent":"\"usePresenceChannel\".PresenceChannelState.__type"},{"id":28,"kind":32,"name":"myID","url":"modules/_usepresencechannel_.html#presencechannelstate.__type-1.myid","classes":"tsd-kind-variable tsd-parent-kind-type-literal tsd-is-not-exported","parent":"\"usePresenceChannel\".PresenceChannelState.__type"},{"id":29,"kind":32,"name":"count","url":"modules/_usepresencechannel_.html#presencechannelstate.__type-1.count","classes":"tsd-kind-variable tsd-parent-kind-type-literal tsd-is-not-exported","parent":"\"usePresenceChannel\".PresenceChannelState.__type"},{"id":30,"kind":4194304,"name":"MemberAction","url":"modules/_usepresencechannel_.html#memberaction","classes":"tsd-kind-type-alias tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"usePresenceChannel\""},{"id":31,"kind":65536,"name":"__type","url":"modules/_usepresencechannel_.html#memberaction.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"\"usePresenceChannel\".MemberAction"},{"id":32,"kind":32,"name":"id","url":"modules/_usepresencechannel_.html#memberaction.__type.id","classes":"tsd-kind-variable tsd-parent-kind-type-literal tsd-is-not-exported","parent":"\"usePresenceChannel\".MemberAction.__type"},{"id":33,"kind":32,"name":"info","url":"modules/_usepresencechannel_.html#memberaction.__type.info","classes":"tsd-kind-variable tsd-parent-kind-type-literal tsd-is-not-exported","parent":"\"usePresenceChannel\".MemberAction.__type"},{"id":34,"kind":4194304,"name":"ReducerAction","url":"modules/_usepresencechannel_.html#reduceraction","classes":"tsd-kind-type-alias tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"usePresenceChannel\""},{"id":35,"kind":65536,"name":"__type","url":"modules/_usepresencechannel_.html#reduceraction.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"\"usePresenceChannel\".ReducerAction"},{"id":36,"kind":32,"name":"type","url":"modules/_usepresencechannel_.html#reduceraction.__type-2.type","classes":"tsd-kind-variable tsd-parent-kind-type-literal tsd-is-not-exported","parent":"\"usePresenceChannel\".ReducerAction.__type"},{"id":37,"kind":32,"name":"payload","url":"modules/_usepresencechannel_.html#reduceraction.__type-2.payload","classes":"tsd-kind-variable tsd-parent-kind-type-literal tsd-is-not-exported","parent":"\"usePresenceChannel\".ReducerAction.__type"},{"id":38,"kind":32,"name":"SET_STATE","url":"modules/_usepresencechannel_.html#set_state","classes":"tsd-kind-variable tsd-parent-kind-external-module","parent":"\"usePresenceChannel\""},{"id":39,"kind":32,"name":"ADD_MEMBER","url":"modules/_usepresencechannel_.html#add_member","classes":"tsd-kind-variable tsd-parent-kind-external-module","parent":"\"usePresenceChannel\""},{"id":40,"kind":32,"name":"REMOVE_MEMBER","url":"modules/_usepresencechannel_.html#remove_member","classes":"tsd-kind-variable tsd-parent-kind-external-module","parent":"\"usePresenceChannel\""},{"id":41,"kind":64,"name":"presenceChannelReducer","url":"modules/_usepresencechannel_.html#presencechannelreducer","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"usePresenceChannel\""},{"id":42,"kind":64,"name":"usePresenceChannel","url":"modules/_usepresencechannel_.html#usepresencechannel","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"usePresenceChannel\""},{"id":43,"kind":1,"name":"\"useTrigger\"","url":"modules/_usetrigger_.html","classes":"tsd-kind-external-module"},{"id":44,"kind":64,"name":"useTrigger","url":"modules/_usetrigger_.html#usetrigger","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"useTrigger\""},{"id":45,"kind":32,"name":"NO_AUTH_HEADERS_WARNING","url":"modules/_usetrigger_.html#no_auth_headers_warning","classes":"tsd-kind-variable tsd-parent-kind-external-module","parent":"\"useTrigger\""}]}; \ No newline at end of file diff --git a/docs/classes/_mocks_.pusherchannelmock.html b/docs/classes/_mocks_.pusherchannelmock.html deleted file mode 100644 index 2ac2261..0000000 --- a/docs/classes/_mocks_.pusherchannelmock.html +++ /dev/null @@ -1,459 +0,0 @@ - - - - - - PusherChannelMock | @harelpls/use-pusher - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - - - -
-
- Menu -
-
-
-
-
-
- -

Class PusherChannelMock

-
-
-
-
-
-
-
-

Hierarchy

- -
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

callbacks

-
callbacks: {}
- -
-
-

Initialize PusherChannelMock with callbacks object.

-
-
-
-

Type declaration

- -
-
-
- -

name

-
name: string
- -
-
-
-

Methods

-
- -

bind

- -
    -
  • - -
    -
    -

    Bind callback to an event name.

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
      -
      -

      name of the event.

      -
      -
    • -
    • -
      callback: CallbackSignature
      -
      -

      callback to be called on event.

      -
      -
    • -
    -

    Returns void

    -
  • -
-
-
- -

emit

-
    -
  • emit(name: string, data?: any, metadata?: any): void
  • -
-
    -
  • - -
    -
    -

    Emit event with data.

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
      -
      -

      name of the event.

      -
      -
    • -
    • -
      Optional data: any
      -
      -

      data you want to pass in to callback function that gets * called.

      -
      -
    • -
    • -
      Optional metadata: any
      -
    • -
    -

    Returns void

    -
  • -
-
-
- -

trigger

-
    -
  • trigger(): void
  • -
- -
-
- -

unbind

- -
    -
  • - -
    -
    -

    Unbind callback from an event name.

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
      -
      -

      name of the event.

      -
      -
    • -
    • -
      callback: CallbackSignature
      -
      -

      callback to be called on event.

      -
      -
    • -
    -

    Returns void

    -
  • -
-
-
-
- -
-
- -
-

Generated using TypeDoc

-
-
- - - - \ No newline at end of file diff --git a/docs/classes/_mocks_.pushermock.html b/docs/classes/_mocks_.pushermock.html deleted file mode 100644 index 671c7ec..0000000 --- a/docs/classes/_mocks_.pushermock.html +++ /dev/null @@ -1,684 +0,0 @@ - - - - - - PusherMock | @harelpls/use-pusher - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - - - -
-
- Menu -
-
-
-
-
-
- -

Class PusherMock

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - PusherMock -
  • -
-
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

-
    -
  • - new PusherMock(key: string, config: Options): PusherMock -
  • -
-
    -
  • - -
    -
    -

    Initialize PusherMock with empty channels object.

    -
    -
    -

    Parameters

    -
      -
    • -
      key: string
      -
    • -
    • -
      config: Options
      -
    • -
    -

    - Returns - PusherMock -

    -
  • -
-
-
-
-

Properties

-
- -

channels

-
- channels: - {} -
- -
-

Type declaration

- -
-
-
- -

config

-
- config: - Options -
- -
-
- -

key

-
- key: - string -
- -
-
-
-

Methods

-
- -

channel

- -
    -
  • - -
    -
    -

    Get channel by its name.

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
      -
      -

      name of the channel.

      -
      -
    • -
    -

    - Returns - PusherChannelMock -

    -

    PusherChannelMock object that represents channel

    -
  • -
-
-
- -

disconnect

-
    -
  • - disconnect(): void -
  • -
- -
-
- -

subscribe

- -
    -
  • - -
    -
    -

    Mock subscribing to a channel.

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
      -
      -

      name of the channel.

      -
      -
    • -
    -

    - Returns - PusherChannelMock -

    -

    PusherChannelMock object that represents channel

    -
  • -
-
-
- -

unsubscribe

-
    -
  • - unsubscribe(name: string): void -
  • -
-
    -
  • - -
    -
    -

    Unsubscribe from a mocked channel.

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
      -
      -

      name of the channel.

      -
      -
    • -
    -

    - Returns void -

    -
  • -
-
-
-
- -
-
- -
-

Generated using TypeDoc

-
-
- - - - diff --git a/docs/classes/_mocks_.pusherpresencechannelmock.html b/docs/classes/_mocks_.pusherpresencechannelmock.html deleted file mode 100644 index f53e0a9..0000000 --- a/docs/classes/_mocks_.pusherpresencechannelmock.html +++ /dev/null @@ -1,494 +0,0 @@ - - - - - - PusherPresenceChannelMock | @harelpls/use-pusher - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - - - -
-
- Menu -
-
-
-
-
-
- -

Class PusherPresenceChannelMock

-
-
-
-
-
-
-
-

Hierarchy

- -
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

callbacks

-
callbacks: {}
- -
-
-

Initialize PusherChannelMock with callbacks object.

-
-
-
-

Type declaration

- -
-
-
- -

members

-
members: any
- -
-
- -

myID

-
myID: any
- -
-
- -

name

-
name: string
- -
-
-
-

Methods

-
- -

bind

- -
    -
  • - -
    -
    -

    Bind callback to an event name.

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
      -
      -

      name of the event.

      -
      -
    • -
    • -
      callback: CallbackSignature
      -
      -

      callback to be called on event.

      -
      -
    • -
    -

    Returns void

    -
  • -
-
-
- -

emit

-
    -
  • emit(name: string, data?: any, metadata?: any): void
  • -
-
    -
  • - -
    -
    -

    Emit event with data.

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
      -
      -

      name of the event.

      -
      -
    • -
    • -
      Optional data: any
      -
      -

      data you want to pass in to callback function that gets * called.

      -
      -
    • -
    • -
      Optional metadata: any
      -
    • -
    -

    Returns void

    -
  • -
-
-
- -

trigger

-
    -
  • trigger(): void
  • -
- -
-
- -

unbind

- -
    -
  • - -
    -
    -

    Unbind callback from an event name.

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
      -
      -

      name of the event.

      -
      -
    • -
    • -
      callback: CallbackSignature
      -
      -

      callback to be called on event.

      -
      -
    • -
    -

    Returns void

    -
  • -
-
-
-
- -
-
- -
-

Generated using TypeDoc

-
-
- - - - \ No newline at end of file diff --git a/docs/globals.html b/docs/globals.html index 75861a9..fdd0187 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -71,8 +71,8 @@

Index

External modules

-

External module "mocks"

+

Interface usePresenceChannelValue

+
+
+
+

Hook return value

+
+
+
+
+

Hierarchy

+
    +
  • + {} +
      +
    • + usePresenceChannelValue +
    • +
    +
  • +
+

Index

-
-

Classes

- -
-

Type aliases

+

Properties

-

Type aliases

-
- -

CallbackSignature

-
CallbackSignature: (data: any, metadata?: any) => void
+

Properties

+
+ +

Optional channel

+
channel: PresenceChannel
-
-

Type declaration

-
    -
  • -
      -
    • (data: any, metadata?: any): void
    • -
    -
      -
    • -

      Parameters

      -
        -
      • -
        data: any
        -
      • -
      • -
        Optional metadata: any
        -
      • -
      -

      Returns void

      -
    • -
    -
  • -
-
@@ -132,47 +123,71 @@

Returns voidGlobals
  • - "PusherProvider" -
  • -
  • - "mocks" + "PusherProvider"
  • - "types" + "react-native/PusherProvider"
  • - "useChannel" + "testUtils"
  • - "useClientTrigger" + "useChannel"
  • - "useEvent" + "useClientTrigger"
  • - "usePresenceChannel" + "useEvent" +
  • +
  • + "usePresenceChannel"
  • - "usePusher" + "usePusher"
  • - "useTrigger" + "useTrigger"
  • diff --git a/docs/modules/_pusherprovider_.html b/docs/modules/_pusherprovider_.html index 997faab..430f05f 100644 --- a/docs/modules/_pusherprovider_.html +++ b/docs/modules/_pusherprovider_.html @@ -1,651 +1,287 @@ - + - - - - "PusherProvider" | @harelpls/use-pusher - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "PusherProvider"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Variables

    - -
    -
    -

    Functions

    - -
    -
    -
    -
    -
    -

    Variables

    -
    - -

    Const PusherContext

    -
    - PusherContext: - Context<PusherContextValues> - = React.createContext<PusherContextValues>({}) -
    - -
    -
    - -

    - Const __PusherContext -

    -
    - __PusherContext: - Context<PusherContextValues> = PusherContext -
    - -
    -
    -
    -

    Functions

    -
    - -

    Const PusherProvider

    -
      -
    • - PusherProvider(__namedParameters: { children: undefined | null | string | number | false | true | {} | ReactElement<any, string | ((props: P) => ReactElement | null) | {}> | ReactNodeArray | ReactPortal; clientKey: string; cluster: "mt1" | "us2" | "us3" | "eu" | "ap1" | "ap2" | "ap3" | "ap4"; defer: boolean; props: props; triggerEndpoint: undefined | string }): Element -
    • -
    -
      -
    • - -
      -
      -

      - Provider that creates your pusher instance and provides it to child hooks - throughout your app. Note, you can pass in value={{}} as a prop if you'd - like to override the pusher client passed. This is handy when simulating - pusher locally, or for testing. -

      -
      -
      -

      Parameters

      -
        -
      • -
        - __namedParameters: { children: undefined | null | string | number | false | true | {} | ReactElement<any, string | ((props: P) => ReactElement | null) | {}> | ReactNodeArray | ReactPortal; clientKey: string; cluster: "mt1" | "us2" | "us3" | "eu" | "ap1" | "ap2" | "ap3" | "ap4"; defer: boolean; props: props; triggerEndpoint: undefined | string } -
        -
          -
        • -
          - children: undefined | null | string | number | false | true | {} | ReactElement<any, string | ((props: P) => ReactElement | null) | {}> | ReactNodeArray | ReactPortal -
          -
        • -
        • -
          - clientKey: string -
          -
        • -
        • -
          - cluster: "mt1" | "us2" | "us3" | "eu" | "ap1" | "ap2" | "ap3" | "ap4" -
          -
        • -
        • -
          - defer: boolean -
          -
        • -
        • -
          - props: props -
          -
        • -
        • -
          - triggerEndpoint: undefined | string -
          -
        • -
        -
      • -
      -

      - Returns Element -

      -
    • -
    -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • - Object literal -
    • -
    • Variable
    • -
    • Function
    • -
    • - Function with type parameter -
    • -
    • - Index signature -
    • -
    • Type alias
    • -
    • - Type alias with type parameter -
    • -
    -
      -
    • Enumeration
    • -
    • - Enumeration member -
    • -
    • - Property -
    • -
    • - Method -
    • -
    -
      -
    • Interface
    • -
    • - Interface with type parameter -
    • -
    • - Constructor -
    • -
    • - Property -
    • -
    • - Method -
    • -
    • - Index signature -
    • -
    -
      -
    • Class
    • -
    • - Class with type parameter -
    • -
    • - Constructor -
    • -
    • - Property -
    • -
    • - Method -
    • -
    • - Accessor -
    • -
    • - Index signature -
    • -
    -
      -
    • - Inherited constructor -
    • -
    • - Inherited property -
    • -
    • - Inherited method -
    • -
    • - Inherited accessor -
    • -
    -
      -
    • - Protected property -
    • -
    • - Protected method -
    • -
    • - Protected accessor -
    • -
    -
      -
    • - Private property -
    • -
    • - Private method -
    • -
    • - Private accessor -
    • -
    -
      -
    • - Static property -
    • -
    • - Static method -
    • -
    -
    -
    -
    -
    -

    Generated using TypeDoc

    -
    -
    - - - - + + + + "PusherProvider" | @harelpls/use-pusher + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + + + + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    External module "PusherProvider"

    +
    +
    +
    +
    +
    +
    +
    +

    Index

    +
    +
    +
    +

    Variables

    + +
    +
    +

    Functions

    + +
    +
    +
    +
    +
    +

    Variables

    +
    + +

    Const PusherContext

    +
    PusherContext: Context<PusherContextValues> = React.createContext<PusherContextValues>({})
    + +
    +
    + +

    Const __PusherContext

    +
    __PusherContext: Context<PusherContextValues> = PusherContext
    + +
    +
    +
    +

    Functions

    +
    + +

    Const PusherProvider

    +
      +
    • PusherProvider(__namedParameters: { _PusherRuntime: Pusher; children: undefined | null | string | number | false | true | {} | ReactElement<any, string | ((props: P) => ReactElement | null) | {}> | ReactNodeArray | ReactPortal; clientKey: undefined | string; cluster: undefined | string; defer: boolean; props: props; triggerEndpoint: undefined | string }): Element
    • +
    +
      +
    • + +
      +
      +

      Provider that creates your pusher instance and provides it to child hooks throughout your app. + Note, you can pass in value={{}} as a prop if you'd like to override the pusher client passed. + This is handy when simulating pusher locally, or for testing.

      +
      +
      +

      Parameters

      +
        +
      • +
        __namedParameters: { _PusherRuntime: Pusher; children: undefined | null | string | number | false | true | {} | ReactElement<any, string | ((props: P) => ReactElement | null) | {}> | ReactNodeArray | ReactPortal; clientKey: undefined | string; cluster: undefined | string; defer: boolean; props: props; triggerEndpoint: undefined | string }
        +
          +
        • +
          _PusherRuntime: Pusher
          +
        • +
        • +
          children: undefined | null | string | number | false | true | {} | ReactElement<any, string | ((props: P) => ReactElement | null) | {}> | ReactNodeArray | ReactPortal
          +
        • +
        • +
          clientKey: undefined | string
          +
        • +
        • +
          cluster: undefined | string
          +
        • +
        • +
          defer: boolean
          +
        • +
        • +
          props: props
          +
        • +
        • +
          triggerEndpoint: undefined | string
          +
        • +
        +
      • +
      +

      Returns Element

      +
    • +
    +
    +
    +
    + +
    +
    +
    +
    +

    Legend

    +
    +
      +
    • Module
    • +
    • Object literal
    • +
    • Variable
    • +
    • Function
    • +
    • Function with type parameter
    • +
    • Index signature
    • +
    • Type alias
    • +
    • Type alias with type parameter
    • +
    +
      +
    • Enumeration
    • +
    • Enumeration member
    • +
    • Property
    • +
    • Method
    • +
    +
      +
    • Interface
    • +
    • Interface with type parameter
    • +
    • Constructor
    • +
    • Property
    • +
    • Method
    • +
    • Index signature
    • +
    +
      +
    • Class
    • +
    • Class with type parameter
    • +
    • Constructor
    • +
    • Property
    • +
    • Method
    • +
    • Accessor
    • +
    • Index signature
    • +
    +
      +
    • Inherited constructor
    • +
    • Inherited property
    • +
    • Inherited method
    • +
    • Inherited accessor
    • +
    +
      +
    • Protected property
    • +
    • Protected method
    • +
    • Protected accessor
    • +
    +
      +
    • Private property
    • +
    • Private method
    • +
    • Private accessor
    • +
    +
      +
    • Static property
    • +
    • Static method
    • +
    +
    +
    +
    +
    +

    Generated using TypeDoc

    +
    +
    + + + + \ No newline at end of file diff --git a/docs/modules/_types_.html b/docs/modules/_react_native_pusherprovider_.html similarity index 70% rename from docs/modules/_types_.html rename to docs/modules/_react_native_pusherprovider_.html index dcb2fe0..941b1d4 100644 --- a/docs/modules/_types_.html +++ b/docs/modules/_react_native_pusherprovider_.html @@ -3,7 +3,7 @@ - "types" | @harelpls/use-pusher + "react-native/PusherProvider" | @harelpls/use-pusher @@ -56,10 +56,10 @@ Globals
  • - "types" + "react-native/PusherProvider"
  • -

    External module "types"

    +

    External module "react-native/PusherProvider"

    @@ -71,15 +71,59 @@

    Index

    -

    Interfaces

    +

    References

    +
    +
    +

    Functions

    +
    +
    +

    References

    +
    + +

    __PusherContext

    + Re-exports __PusherContext +
    +
    +
    +

    Functions

    +
    + +

    Const PusherProvider

    +
      +
    • PusherProvider(props: PusherProviderProps & { children?: ReactNode }): Element
    • +
    +
      +
    • + +
      +
      +

      Wrapper around the core PusherProvider that passes in the Pusher react-native lib

      +
      +
      +

      Parameters

      +
        +
      • +
        props: PusherProviderProps & { children?: ReactNode }
        +
      • +
      +

      Returns Element

      +
    • +
    +
    +