Comments (4)
Programmatically
Besides the initialization as shown on readme you just have to call the chatservice like so:
`import { ChatService, ChatServiceToken } from '@pazznetwork/ngx-chat';
export class Whatever {
constructor(@Inject(ChatServiceToken) public chatService: ChatService) {}
public sendMessage() {
const receiver = '[email protected]'; // user bla on blub.com domain
const merssage = 'Hi!';
this.chatService.sendMessage(receiver, message);
}
}`
keep in mind, that you indeed can send messages to other xmpp clients than ours, but there may be some differences in implementation, so that one client might not see the other ones messages. Our implementation should be like W3C but some others not. Currently we only support messages between 2 users of our client. We will later also add a client list with working other clients.
from ngx-chat.
thank you very much, it seems that my problems were caused by openfire ssl self-signed and firefox. Does it work correctly in firefox? , I have several incidents always in firefox. Thanks guys )
from ngx-chat.
Yes. It should work in Firefox. At least it does for me ;)
from ngx-chat.
Hi @lolagardiel,
you could try to import your self-signed certificate into the firefox browser certificate store. It should work if the domain name matches the self signed certificates common name (CN).
I will close this issue and update the readme with information regarding certificates and using the API for sending messages. Feel free to reopen or to open another issue.
Cheers!
from ngx-chat.
Related Issues (20)
- Inherit BlockPlugin HOT 1
- XMPP Compliance Suite 2022
- XMPP Compliance Suite 2022 HOT 1
- Unread counter not triggers for new room HOT 3
- How to parse custom stanza. HOT 1
- Seen by users in multi chat
- Count unread messages when offline HOT 1
- Unread message badge issue HOT 1
- Unread message counter does not disappear when messages are read. HOT 1
- Missing Sending status HOT 2
- Cannot register HOT 1
- How to use multi-user room implementation? HOT 3
- how to integrate it in IONIC app HOT 1
- After reconnect and join room the "old" user resource is still in the room HOT 2
- Ensure Avatars working HOT 1
- Not working for Angular 7
- Release new version
- OAUTHBEARER vs X-OAUTH2
- Prevent warning 'ChatService: message with id xxx already exists" HOT 4
- Warning message after updating to version 0.12.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-chat.