Socket
Socket
Sign inDemoInstall

sock-chat

Package Overview
Dependencies
295
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sock-chat

Universal web socket chat application, meant to be integrated to any website.


Version published
Maintainers
1
Created

Readme

Source

Sock Chat

Sock Chat is a full-stack chat live chat library, ready to be set-up and embedded into your website! The goal is to require as little configuration as possible, reusing your applications sessions and users!

Installation (Server)

Use the package manager npm to install Sock-Chat.

npm i sock-chat

Installation (Client)

Prerequisites

You will need socket.io

Usage

    <section id="socket-chat" 
      data-socketurl="(YOUR SOCKET URL) ex: http://localhost:3000" 
      data-sessionkey="(Users Session Key/Post Key) ex: foobarkey"
    ></section>

    <script src="./dist/js/socket.io.js"></script>
    <script src="./dist/js/sock.chat.client.js"></script>

Usage Windows (Power Shell)

$env:dbtype = "postgres";
$env:dbname = "myapp";
$env:dbuser = "appuser";
$env:dbpass = "appuser_password";
$env:dbhost = "localhost";
$env:dbport = "3113";
$env:socketport = "3000";
//Start the socket server
node core.js

Usage Linux

dbtype = "postgres";
dbname = "myapp";
dbuser = "appuser";
dbpass = "appuser_password";
dbhost = "localhost";
dbport = "3113";
socketport = "3000";
//Start the socket server
node core.js

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

FAQs

Last updated on 10 Sep 2019

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc