     func webSocket(webSocket:SRWebSocket!, didReceiveMessage message:AnyObject?) {
         // println(message)
         
-        self.parseWebSocketMessage(message)
+        self.parseEngineMessage(message)
     }
     
     // Called when the socket is opened

                if self == nil {
                    return
                } else if err != nil || data == nil {
                    println("Error")
                    println(err)
                    if !self!.client.reconnecting {
                        self?.client.tryReconnect(triesLeft: self!.client.reconnectAttempts)
                    }
                    return
                }
                
                if let dataString = NSString(data: data, encoding: NSUTF8StringEncoding) {

    private var pingTimer:NSTimer?
    private var pollingTimer:NSTimer?
    private var _polling = true
    private var wait = false
    private var _websocket = false
    private var websocketConnected = false
    var pingInterval:Int?
