Skip to content

Commit 0c738d9

Browse files
committed
[[ ssb ]] added serverType property to allow detection of backend.
closes #106 This allows package developers to create branching code to support different SSB server types.
1 parent 39438a7 commit 0c738d9

File tree

1 file changed

+2
-0
lines changed
  • src/core/platforms/nodejs-ssb

1 file changed

+2
-0
lines changed

src/core/platforms/nodejs-ssb/ssb.js

+2
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ const setMsgCache = (id, data) => {
152152

153153
class NodeJsSSB {
154154
constructor() {
155+
this.serverType = "nodejs-ssb"
156+
155157
// add basic built-in pipelines
156158
pipelines.thread.use(this.filterHasContent)
157159
pipelines.thread.use(this.filterTypes)

0 commit comments

Comments
 (0)