Skip to content

Commit 6be3b4e

Browse files
committed
fix: fix server name on realtime #30
1 parent 1bcd04e commit 6be3b4e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/network.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ module.exports = class NetworkWrapper {
348348
let packet = data.data[1]
349349
Object.keys(packet).forEach((event) => {
350350
if (event === 'server_name') return
351-
this.realtime.emit(`${bucket.public_id}:${data.server_name || 'none'}:${event}`, packet[event])
351+
this.realtime.emit(`${bucket.public_id}:${packet.server_name || 'none'}:${event}`, packet[event])
352352
})
353353
}
354354

test/keymetrics.mocha.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const Keymetrics = require('..')
66
const assert = require('assert')
77
const async = require('async')
88

9-
describe('Keymetrics Integration', () => {
9+
describe('Keymetrics Integration', function () {
10+
this.timeout(5000)
1011
let km = null
1112
it('should instanciate keymetrics', () => {
1213
km = new Keymetrics().use('standalone', {

0 commit comments

Comments
 (0)