Commit beb6bb79 authored by Anton's avatar Anton

Move sockets integration to external project

parent 6a972110
Pipeline #12190 passed with stage
in 7 minutes and 39 seconds
...@@ -9,8 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -9,8 +9,6 @@ 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,7 +45,6 @@ ...@@ -45,7 +45,6 @@
"@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",
...@@ -57,7 +56,6 @@ ...@@ -57,7 +56,6 @@
"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,10 +6,6 @@ const setup = async function () { ...@@ -6,10 +6,6 @@ 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