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

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

	func webSocketOpen() {
		print("Websocket opened!")
		wsRetries = 0
		DispatchQueue.global().asyncAfter(deadline: DispatchTime.now() + DispatchTimeInterval.seconds(10)) {
			if !self.recievedMessage {
				self.ws.close()
			}
		}
	}
	
	func webSocketClose(_ code: Int, reason: String, wasClean: Bool) {
