Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Switch to friends-swarm #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Switch to friends-swarm #3

wants to merge 3 commits into from

Conversation

Flet
Copy link
Member

@Flet Flet commented May 28, 2015

Closes #1

var log = logs[name] = hyperlog(subleveldown(db, name))
var id = 'friends-' + name
var hub = signalhub('http://dev.mathiasbuus.eu:8080', id)
var sw = swarm(hub, { wrtc: wrtc })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since friends-irc uses node-webrtc wrtc was passed in as an option here. Should be good if you just change the call to createSwarm here to pass in the options instead :)

@ekmartin
Copy link
Member

Cool! If you rebase in master Travis should run the tests with iojs-1.8.1 instead of 2.1 (739b714 and #4).

@Flet
Copy link
Member Author

Flet commented May 28, 2015

Ah, good catch. Added wrtc back :)

@ekmartin
Copy link
Member

Did you get it to work? I'll have to investigate more later, but it doesn't seem like it's able to retrieve/post messages sent from Friends.

@Flet
Copy link
Member Author

Flet commented May 29, 2015

Honestly I've had troubles seeing any peers just in friends for a couple weeks now. I suspect signalhub funk as I can connect via an ad hoc hub for testing... I have not tested this locally yet. I'll try it later today.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move swarm out of repository
2 participants