'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)
spacebro/spacebro2-client
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
work in progress — the new spacebro client
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published