@codesoup/chat-client

0.0.5 • Public • Published

Chat Client

Add a chat client to your app

Dependencies

  • socket.io-client

Installation

# in your app directory
npm install svelte-demo-chat-client socket.io-client

How to use

  • Import the ChatClient in your app
  • Supply an endpoint and an auth string (if using)
<script>
  import { ChatClient } from "svelte-demo-chat-client.svelte";

  # supply an endpoint, and optional authentication
  const endpoint = "http://urlofyoursocketioserver";
  const auth ="my_auth_string";
  ...
</script>
<body>
  <ChatClient endpoint={endpoint} auth={auth} />
  ...

Readme

Keywords

Package Sidebar

Install

npm i @codesoup/chat-client

Weekly Downloads

0

Version

0.0.5

License

ISC

Unpacked Size

14.6 kB

Total Files

16

Last publish

Collaborators

  • alnig441