You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to subscribe on events using signal r and using sound effect when these events happens. How can I create this in Dart? I am trying to create such logic: when a new id appears in websocket, a sound starts playing. In docs to signal r it only says that i should using hubconnection.on, but I don't understand how can I bond the new id and sound. And as sample they gave me this JS code above. Or may be I should use only argumet without object?
In Dart it looks like that. I have sample with data: data: {id: '1234', date: '2022-08-29T12:05:27.770Z', base: 'BaseNameExample', additionInfo: 'there is no example', dataId: '3fa85f64-5717-4562-b3fc-2c963f66afa6'},
and in Dart I am trying to do it like that using audioplayer:
I want to subscribe on events using signal r and using sound effect when these events happens. How can I create this in Dart? I am trying to create such logic: when a new id appears in websocket, a sound starts playing. In docs to signal r it only says that i should using hubconnection.on, but I don't understand how can I bond the new id and sound. And as sample they gave me this JS code above. Or may be I should use only argumet without object?
In Dart it looks like that. I have sample with data: data: {id: '1234', date: '2022-08-29T12:05:27.770Z', base: 'BaseNameExample', additionInfo: 'there is no example', dataId: '3fa85f64-5717-4562-b3fc-2c963f66afa6'},
and in Dart I am trying to do it like that using audioplayer:
The text was updated successfully, but these errors were encountered: