'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)
-
Notifications
You must be signed in to change notification settings - Fork 0
spacebro/spacebro2-client
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