(event WSEventType)
| 47 | } |
| 48 | |
| 49 | func SendEventToElectron(event WSEventType) { |
| 50 | barr, err := json.Marshal(event) |
| 51 | if err != nil { |
| 52 | log.Printf("cannot marshal electron message: %v\n", err) |
| 53 | return |
| 54 | } |
| 55 | // send to electron |
| 56 | log.Printf("sending event to electron: %q\n", event.EventType) |
| 57 | fmt.Fprintf(os.Stderr, "\nWAVESRV-EVENT:%s\n", string(barr)) |
| 58 | } |
no outgoing calls
no test coverage detected