We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5863856 commit 2a5f1cfCopy full SHA for 2a5f1cf
src/dnssd/avahi.ts
@@ -135,10 +135,8 @@ class AvahiBrowser extends events.EventEmitter implements dnssd.Browser {
135
136
constructor(private readonly client: AvahiClient, private options: dnssd.BrowseOptions) {
137
super();
138
- // @ts-ignore
139
- this.bus = client.server.$object.bus;
140
141
- this.bus.on('message', (msg: dbus.Message) => {
+ this.bus = (client.server as any).$object.bus;
+ (this.bus as any).on('message', (msg: dbus.Message) => {
142
if (msg.type !== dbus.MessageType.SIGNAL) {
143
return;
144
}
0 commit comments