File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,19 @@ export const RegistrationState = Object.freeze({
1515 PERMISSION_DENIED : 'PERMISSION_DENIED' ,
1616} ) ;
1717
18+ /* BaseClient is an abstract client containing functionality shared between
19+ * safari and web push clients. Platform specific classes should extend this
20+ * class. This method expects sub classes to implement the following public
21+ * methods:
22+ * async start()
23+ * async getRegistrationState() {
24+ * async stop() {
25+ * async clearAllState() {
26+ *
27+ * It also assumes that the following private methods are implemented:
28+ * async _init()
29+ * async _detectSubscriptionChange()
30+ */
1831export default class BaseClient {
1932 constructor ( config , platform ) {
2033 if ( this . constructor === BaseClient ) {
You can’t perform that action at this time.
0 commit comments