Orion Talk

The Orion Talk is a user interface component that provides textual chat for the Orion Talk Service.

Features

The Orion Talk component provides the following features:

  • Create a new channel in the service
  • Receive all messages from a channel
  • Send a message to a channel

Installation

Install the module to your Nuxt application with one command:

npx nuxi module add orion-talk

For more information about installation, please, look at the npm package: @orion-services/orion-login.

Usage

To use the Orion Talk component in your Nuxt application, import the component and include it in your template. The component will render a chat interface.

<template>
  <OrionLogin />
</template>

Properties

The component accepts the following properties:

  • user: The user object with at least a name and hash properties: user{hash, name}
  • token: A string representing a JWT(JSON Web Token) for the user.
  • url: The URL of the Orion Talk Service, the default is http://localhost:8082/graphql.

Example

<template>
    <OrionTalk
      :user="user"
      :token="token"
      :url="http://talk.orion-services.dev/graphql"
    />
</template>

Backend: Orion Talk Service

Coming soon

The Orion Talk component communicates with the Orion Talk Service. The backend is available at Docker Hub as a Docker image. To run the backend, use the following command:

docker run -p 8080:8080 orionservices/orion-talk

Copyright © 2024 Orion Services. Distributed by Apache 2.0 license.