File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @sanctumterra/raknet" ,
3
- "version" : " 1.3.69 " ,
3
+ "version" : " 1.3.70 " ,
4
4
"description" : " " ,
5
5
"main" : " dist/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 1
1
import type {
2
2
Ack ,
3
+ Advertisement ,
3
4
ConnectedPing ,
4
5
ConnectionRequest ,
5
6
ConnectionRequestAccepted ,
@@ -29,6 +30,6 @@ export interface ClientEvents {
29
30
ack : [ Ack ] ;
30
31
error : [ Error ] ;
31
32
close : [ ] ;
32
- connect : [ ] ;
33
+ connect : [ Advertisement ] ;
33
34
tick : [ ] ;
34
35
}
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ export class Client extends Emitter<ClientEvents> {
133
133
this . onceAfter ( "new-incoming-connection" , ( ) => {
134
134
if ( ! isResolved ) {
135
135
isResolved = true ;
136
- this . emit ( "connect" ) ;
136
+ this . emit ( "connect" , advertisement ) ;
137
137
this . status = Status . Connected ;
138
138
resolve ( advertisement ) ;
139
139
}
You can’t perform that action at this time.
0 commit comments