 	}
 	
 	@objc func webSocketMessageText(_ text: String) {
+		recievedMessage = true
 		do {
 			guard let json = try client.parseJSON(text) as? NSDictionary else {
 				throw EventError.jsonParsingFailed(json: text)

	func webSocketOpen() {
		print("Websocket opened!")
		wsRetries = 0
	}
	
	func webSocketClose(_ code: Int, reason: String, wasClean: Bool) {

	let client: Client
	let roomID: Int
	
	var recievedMessage = false
	
	var delegate: ChatRoomDelegate?
	
	fileprivate var pendingLookup = [ChatUser]()
