Commit 6a972110 authored by Anton's avatar Anton

Add socket.io and cote sockend, update changelog

parent 1ac7c40a
Pipeline #12177 passed with stage
in 8 minutes and 4 seconds
...@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
- [cote](https://github.com/dashersw/cote) Sockend over [socket.io](https://socket.io/) to connect frontends
with microservices
- Basic [Pina Bausch Archive (PBA)](http://www.pinabausch.org) proxy endpoints for pieces and titles - Basic [Pina Bausch Archive (PBA)](http://www.pinabausch.org) proxy endpoints for pieces and titles
### Updated ### Updated
......
This diff is collapsed.
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
"@polka/send-type": "^0.4.0", "@polka/send-type": "^0.4.0",
"axios": "^0.18.0", "axios": "^0.18.0",
"config": "^2.0.1", "config": "^2.0.1",
"cote": "^0.20.0",
"luxon": "^1.3.3", "luxon": "^1.3.3",
"mbjs-data-models": "1.2.4", "mbjs-data-models": "1.2.4",
"mbjs-generic-api": "1.1.3", "mbjs-generic-api": "1.1.3",
...@@ -56,6 +57,7 @@ ...@@ -56,6 +57,7 @@
"mz": "^2.7.0", "mz": "^2.7.0",
"nedb": "^1.8.0", "nedb": "^1.8.0",
"rimraf": "^2.6.2", "rimraf": "^2.6.2",
"socket.io": "^2.2.0",
"tiny-emitter": "^2.0.2", "tiny-emitter": "^2.0.2",
"yauzl": "^2.10.0", "yauzl": "^2.10.0",
"yazl": "^2.4.3" "yazl": "^2.4.3"
......
...@@ -6,6 +6,10 @@ const setup = async function () { ...@@ -6,6 +6,10 @@ const setup = async function () {
const api = new GenericAPI() const api = new GenericAPI()
await api.setup() await api.setup()
const
Services = require('./lib/services'),
services = new Services(api)
/** /**
* Configure Profiles * Configure Profiles
*/ */
......
const cote = require('cote')
class Services {
constructor (api) {
this._io = require('socket.io').listen(api._server)
this._io.on('connection', socket => {
socket.join('default')
})
this._sockend = new cote.Sockend(this._io, {
name: 'Default Sockend'
// key: 'default'
})
}
}
module.exports = Services
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment