@@ -20,7 +20,7 @@ describe('SSEServerTransport', () => {
20
20
const mockRes = createMockResponse ( ) ;
21
21
const endpoint = '/messages' ;
22
22
const transport = new SSEServerTransport ( endpoint , mockRes ) ;
23
- const expectedSessionId = ( transport as any ) . _sessionId ;
23
+ const expectedSessionId = transport . sessionId ;
24
24
25
25
await transport . start ( ) ;
26
26
@@ -35,7 +35,7 @@ describe('SSEServerTransport', () => {
35
35
const mockRes = createMockResponse ( ) ;
36
36
const endpoint = '/messages?foo=bar&baz=qux' ;
37
37
const transport = new SSEServerTransport ( endpoint , mockRes ) ;
38
- const expectedSessionId = ( transport as any ) . _sessionId ;
38
+ const expectedSessionId = transport . sessionId ;
39
39
40
40
await transport . start ( ) ;
41
41
@@ -50,7 +50,7 @@ describe('SSEServerTransport', () => {
50
50
const mockRes = createMockResponse ( ) ;
51
51
const endpoint = '/messages#section1' ;
52
52
const transport = new SSEServerTransport ( endpoint , mockRes ) ;
53
- const expectedSessionId = ( transport as any ) . _sessionId ;
53
+ const expectedSessionId = transport . sessionId ;
54
54
55
55
await transport . start ( ) ;
56
56
@@ -65,7 +65,7 @@ describe('SSEServerTransport', () => {
65
65
const mockRes = createMockResponse ( ) ;
66
66
const endpoint = '/messages?key=value#section2' ;
67
67
const transport = new SSEServerTransport ( endpoint , mockRes ) ;
68
- const expectedSessionId = ( transport as any ) . _sessionId ;
68
+ const expectedSessionId = transport . sessionId ;
69
69
70
70
await transport . start ( ) ;
71
71
@@ -80,7 +80,7 @@ describe('SSEServerTransport', () => {
80
80
const mockRes = createMockResponse ( ) ;
81
81
const endpoint = '/' ;
82
82
const transport = new SSEServerTransport ( endpoint , mockRes ) ;
83
- const expectedSessionId = ( transport as any ) . _sessionId ;
83
+ const expectedSessionId = transport . sessionId ;
84
84
85
85
await transport . start ( ) ;
86
86
@@ -95,7 +95,7 @@ describe('SSEServerTransport', () => {
95
95
const mockRes = createMockResponse ( ) ;
96
96
const endpoint = '' ;
97
97
const transport = new SSEServerTransport ( endpoint , mockRes ) ;
98
- const expectedSessionId = ( transport as any ) . _sessionId ;
98
+ const expectedSessionId = transport . sessionId ;
99
99
100
100
await transport . start ( ) ;
101
101
0 commit comments