Giter Site home page Giter Site logo

Send & recive messages about ngx-chat HOT 4 CLOSED

pazznetwork avatar pazznetwork commented on May 18, 2024
Send & recive messages

from ngx-chat.

Comments (4)

lordoliver avatar lordoliver commented on May 18, 2024

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.

lolagardiel avatar lolagardiel commented on May 18, 2024

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.

lordoliver avatar lordoliver commented on May 18, 2024

Yes. It should work in Firefox. At least it does for me ;)

from ngx-chat.

trampi avatar trampi commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.