Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@nezam/firebase-chat-manager
Advanced tools
Nodejs helper to manage firebase realtime database for chatting rooms
A small library that manages firebase realtime database for API use as a Chat Interface.
npm install @abdullaalsayyed/firebase-chat-manager
Initialization:
var Chat = require('@abdullaalsayyed/firebase-chat-manager');
Chat.configurations = {
apiKey: "<your-api-key>",
authDomain: "<project-id>.firebaseapp.com",
databaseURL: "https://<project-id>.firebaseio.com",
projectId: "<project-id>",
storageBucket: "<project-id>.appspot.com",
messagingSenderId: "<sender-id>",
namespace: '<your-custom-namepace>',
timestampFormat: 'YYYY/MM/DD HH:mm:ss'
};
Create new chat:
var chat = new Chat(123);
// If there is no chat created with that id, it will return that chat object or it will create a new instance.
var chat = Chat.findOrCreate({chatId: 2225, senderId: 2222, receiverId: 3333});
Get Chat Messages:
chat.getMessages().then((message) => { console.log(message.val()) });
Send a new Message:
chat.sendMessage({text: 'new message', senderId: 22551});
Delete all chat messages:
chat.clearMessages();
npm test
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
FAQs
Nodejs helper to manage firebase realtime database for chatting rooms
The npm package @nezam/firebase-chat-manager receives a total of 2 weekly downloads. As such, @nezam/firebase-chat-manager popularity was classified as not popular.
We found that @nezam/firebase-chat-manager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.