
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
otalk-chat-view
Advanced tools
A companion module to `otalk-client`, this module provides all of the logic necessary for implementing a chat view. You only need to provide the templates.
A companion module to otalk-client, this module provides all of the logic
necessary for implementing a chat view. You only need to provide the templates.
$ npm install otalk-chat-view
var templates = require('./templates');
var BasePage = require('./base');
var createChatView = require('otalk-chat-view');
var ChatPage = createChatView(BasePage, {
templates: {
base: templates.pages.chat,
chat: templates.includes.chat,
chatGroup = tempates.includes.chatWrapper
}
});
chat-input role
A <div/> or <form/> that also contains a <textarea /> element inside it.
message-list role
A <ul/> where all chats will be inserted (where each <li/> is for a group
of chats all from the same participant).
messages-wrapper class
A wrapping <div/> inside each chat group <li/> where messages will be inserted.
<div>
... your chat view header
<ul role="message-list">
<li>
... display contact avatar, etc
<div class="messages-wrapper">
... individual message items
</div>
</li>
</ul>
<form role="chat-input">
<textarea></textarea>
</form>
</div>
A Contact model of some sort is assumed, which provides:
.messages
A collection of chat message models.
.lastSentMessageID
The ID of the last sent message, which is needed to do message correction.
.sendChatState(state)
Sends a typing/paused notification to the contact.
.sendChat(body, replaceID)
Creates and sends a new message, optionally marked as a correction edit for the last sent message.
A Message model is assumed to provide:
.type.fromFullJID.fromBareJIDMIT
If you like this, follow @lancestout on twitter.
FAQs
A companion module to `otalk-client`, this module provides all of the logic necessary for implementing a chat view. You only need to provide the templates.
We found that otalk-chat-view demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.