 			informDelegate = true
 		case .previewInitialized(let initData):
 			previewDelegate?.previewIdReceived(response: initData)
-		case .previewUpdate(let data):
+		case .previewUpdated(let data):
 			previewDelegate?.previewUpdateReceived(response: data)
 		default:
 			informDelegate = true

	func send(command: SessionCommand) -> Bool {
		do {
			let data = try conInfo.encode(command)
			self.webSocketWorker.send(data: data)
		} catch let err as NSError {
			Log.error("error sending message on websocket: \(err)", .session)

		case .environmentCreated:
			return nil
		case .previewInitialized(let data):
			return data.updateIdentifier
		case .previewUpdated(let data):
			return data.updateIdentifier
		}
	}
	
