Start the tapper after the API server is ready (#309)

This commit is contained in:
M. Mert Yıldıran
2021-09-30 11:22:07 +03:00
committed by GitHub
parent cc49e815d6
commit 9eecddddd5
3 changed files with 26 additions and 83 deletions

View File

@@ -77,7 +77,7 @@ func main() {
filteredOutputItemsChannel := make(chan *tapApi.OutputChannelItem)
tap.StartPassiveTapper(tapOpts, filteredOutputItemsChannel, extensions, filteringOptions)
socketConnection, err := utils.ConnectToSocketServer(*apiServerAddress)
socketConnection, _, err := websocket.DefaultDialer.Dial(*apiServerAddress, nil)
if err != nil {
panic(fmt.Sprintf("Error connecting to socket server at %s %v", *apiServerAddress, err))
}