File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 66 - main
77 - dev/v\d+\.\d+\.\d+
88 types : [opened, reopened, synchronize]
9+ paths :
10+ - ' seamless/**/*.py'
911
1012permissions :
1113 contents : read
Original file line number Diff line number Diff line change @@ -130,21 +130,16 @@ class Seamless {
130130 }
131131
132132 registerEventListener (
133- seamlessId : string ,
134133 event : string ,
135134 callback : ( e : any ) => any
136135 ) {
137- this . socket . on ( ` ${ seamlessId } : ${ event } ` , callback ) ;
136+ this . socket . on ( event , callback ) ;
138137 }
139138
140139 emit ( event : string , ...args : any [ ] ) {
141140 this . socket . emit ( event , ...args ) ;
142141 }
143142
144- sendCustomEvent ( event : string , data : any ) {
145- this . socket . emit ( "custom" , event , data ) ;
146- }
147-
148143 sendWaitResponse < T > ( event : string , ...args : any [ ] ) {
149144 return new Promise < T > ( ( resolve ) => {
150145 this . socket . emit ( event , ...args , resolve ) ;
You can’t perform that action at this time.
0 commit comments