 
 /// Dictionary which keeps what already has been subscribed to
 class QminderEventsTester {
-  
+
   let ws: WebSocket
-  
+
   var subscriptions: [QminderEvent: String] = [:]
-  
+
   /// What events we need to start tests?
   let events: Set<QminderEvent> = [.ticketCreated, .ticketCalled,
                                    .ticketRecalled, .ticketServed,
                                    .ticketCancelled, .ticketChanged,
                                    .overviewMonitorChange, .linesChanged]
-  
+
   init(ws: WebSocket) {
     self.ws = ws
   }
-  
+
   func parseInput(_ text: String) {
     print("RECEIVED: \(text)")
-    
+
+    guard text != "PING" else {
+      return
+    }
+
     do {
       guard let data = text.data(using: .utf8) else { return }
       let message = try JSONDecoder().decode(WebsocketMessage.self, from: data)
       print(message)
       subscriptions[message.eventType] = message.id
-      
+
       if self.events == Set(subscriptions.keys) {
         self.executeTests()
       }

          ]
        ]
        secondTicketData.changeTicketData(data)
        
        self.send(.ticketCalled, counter, secondTicketData) {
          callback(7)
        }
      },
      { callback, counter in
        
        let data: [String: Any] = [
          "status": "CALLED",
          "interactions": [

          ]
        ]
        secondTicketData.changeTicketData(data)

        self.send(.ticketServed, counter, secondTicketData) {
          callback(9)
        }
