File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/database/src/realtime Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ export class WebSocketConnection implements Transport {
76
76
private stats_ : StatsCollection ;
77
77
private everConnected_ : boolean ;
78
78
private isClosed_ : boolean ;
79
+ private nodeAdmin : boolean ;
79
80
80
81
/**
81
82
* @param connId identifier for this transport
@@ -87,7 +88,7 @@ export class WebSocketConnection implements Transport {
87
88
*/
88
89
constructor (
89
90
public connId : string ,
90
- private repoInfo : RepoInfo ,
91
+ repoInfo : RepoInfo ,
91
92
private applicationId ?: string ,
92
93
transportSessionId ?: string ,
93
94
lastSessionId ?: string
@@ -99,6 +100,7 @@ export class WebSocketConnection implements Transport {
99
100
transportSessionId ,
100
101
lastSessionId
101
102
) ;
103
+ this . nodeAdmin = repoInfo . nodeAdmin ;
102
104
}
103
105
104
106
/**
@@ -151,7 +153,7 @@ export class WebSocketConnection implements Transport {
151
153
152
154
try {
153
155
if ( isNodeSdk ( ) ) {
154
- const device = this . repoInfo . nodeAdmin ? 'AdminNode' : 'Node' ;
156
+ const device = this . nodeAdmin ? 'AdminNode' : 'Node' ;
155
157
// UA Format: Firebase/<wire_protocol>/<sdk_version>/<platform>/<device>
156
158
const options : { [ k : string ] : object } = {
157
159
headers : {
You can’t perform that action at this time.
0 commit comments