Anyone here who works on browser-based SSB clients facing a problem browserifying ssb-client@4.9.0
?
I've been doing some work on #patchfox today and it is crashing because it is attempting to actually use fs.mkdtempSync
to read a UNIX socket (which is a nonsense for a browser anyway). The errors bubble from client.js
in ssb-client:
// I think it would be better to make these registerable plugins,
// that got connected up when you called. so they are not hard coded here.
var ms = MultiServer([
[Net({}), shs],
[Onion({}), shs],
[WS({}), shs],
[UnixSock({}), noauth],
[Net({}), noauth]
])
It is that UnixSock
line. This was not happening before. I have no idea what happened.