Skip to content

Commit

Permalink
chore: more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
amuslija committed Mar 19, 2024
1 parent 0c766b8 commit 3cc6425
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func (c *client) loop(messageChan <-chan paho.Message, timeout uint) {

// AddEventListener expose the js method to listen for events
func (c *client) AddEventListener(event string, listener func(goja.Value) (goja.Value, error)) {
println("adding listener for", event)

Check failure on line 156 in subscribe.go

View workflow job for this annotation

GitHub Actions / lint

use of `println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
switch event {
case "message":
c.messageListener = listener
Expand Down

0 comments on commit 3cc6425

Please sign in to comment.