1.0.4 • Published 3 years ago
w3sockets v1.0.4
W3sockets Implementation
- From Retention to Conversion. Develop real-time web applications delivering the dynamism which indeed holds the potential to convert your website visitors!
npm i w3sockets
Step:- 1
let w3sockets = require('w3sockets');
Step:- 2
w3sockets.initialize({
grant_type: 'client_credentials',
public_key: 'your_public_key',
secret_key: 'your_screte_key'
})
For push socket notification
w3sockets.push('channel', 'event_name', 'your_message_here')
For push notification to firebase
w3sockets.pushFirebaseNotification('channel', 'message_title', 'message_body')