Skip to content

Commit

Permalink
remove gate info
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmyk committed Mar 29, 2019
1 parent 6a08fa3 commit 9b8774d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 23 deletions.
7 changes: 4 additions & 3 deletions lib/fox_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ const Session = require('./session')
const tools = require('./tools')

function FoxApi (realm) {
Session.call(this)

this.gate = this
this.getEncoder = function () {
return this
}
Session.call(this, this)
this.sessionId = tools.randomId()

// API functions
Expand Down
5 changes: 1 addition & 4 deletions lib/hyper/gate.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ class FoxGate extends BaseGate {
sendWelcome (session, cmd) {
session.send({
id: cmd.id,
rsp: RESULT_OK,
data: { kv: {
realmInfo: session.getRealmInfo()
} }
rsp: RESULT_OK
})
}

Expand Down
8 changes: 0 additions & 8 deletions lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,6 @@ function Session (gateHandler, sender, sessionId) {
this.getGateProtocol = function () {
return gateHandler.getProtocol()
}

this.getRealmInfo = function () {
if (this.realm) {
return this.realm.getInfo()
} else {
return {}
}
}
}

module.exports = Session
2 changes: 0 additions & 2 deletions lib/wamp/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ function WampApi (realm) {
this.getEncoder = function () {
return this
}

Session.call(this, this)

this.sessionId = tools.randomId()

// API functions
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fox-wamp",
"version": "0.5.14",
"version": "0.5.15",
"description": "Web Application Message Router/Server WAMP/MQTT",
"author": {
"name": "Anatoly Tsapkov",
Expand All @@ -27,7 +27,7 @@
"mqtt-packet": "^6.1.1",
"node-statsd": "*",
"qlobber": "*",
"ws": "^6.2.0"
"ws": "^6.2.1"
},
"devDependencies": {
"autobahn": "^18.10.2",
Expand Down

0 comments on commit 9b8774d

Please sign in to comment.