Binds {@link AudioRecorder#startRecording} to {@link this#recordButton} when an "mousedown" event occurs
Binds {@link AudioRecorder#stopRecording} to {@link this#recordButton} when an "mouseup" event occurs
Subscribes to the audio channel. Callback has no effect since message types are handled by {@link MqttConnection#onMessage}
Generated using TypeDoc
IBehaviour implementation that listens for a onmouseup/down on the given recordButton.
onmouseup starts the recording, onmousedown stops the recording and publishes an audio message to the outbound audio channel.