Skip to content

spacebro/spacebro2-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spacebro2-client

Example connection

'use strict'

const client = require('spacebro2-client')

client.setup({ name: 'client-name' })

client.on('image-event', (data, from) => {
  console.log(`received ${data} from ${from}`)
})

setTimeout(() => {
  client.emit('test-event', 'hello world')
  client.emit('sendto-event', 'hello again', 'other-client-name')
}, 2000)

About

work in progress — the new spacebro client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published