Skip to content

Latest commit

 

History

History
 
 

skychat

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Skywire Chat app

Chat implements basic text messaging between skywire visors.

Messaging UI is exposed via web interface.

Chat only supports one WEB client user at a time.

Local setup

Create 2 node config files:

skywire1.json

{
  "apps": [
    {
      "app": "skychat",
      "version": "1.0",
      "auto_start": true,
      "port": 1
    }
  ]
}

skywire2.json

{
  "apps": [
    {
      "app": "skychat",
      "version": "1.0",
      "auto_start": true,
      "port": 1,
      "args": ["-addr", ":8001"]
    }
  ]
}

Compile binaries and start 2 nodes:

$ go build -o apps/skychat.v1.0 ./cmd/apps/skychat
$ ./skywire-visor skywire1.json
$ ./skywire-visor skywire2.json

Chat interface will be available on ports 8000 and 8001.