 				canvas.connections[user!] = ws
 				//Return generated UUID
 				let structure: [String: NodeRepresentable] = [
-					"response": "authSuccessful",
+					"responseType": "authSuccessful",
 					"uuid": user?.uuid]
 				
 				guard let json = try? JSON(node: structure) else {

						case "initialAuth":
							initialAuth()
						case "getCanvas":
							sendCanvas()
						case "postTile":
							handleTilePlace(json: json)
						case "getTileData": break
						default: break
					}

		}
    }
}

/*
TODO:
Add UUID check for sendCanvas
Add UUID check for sendColors
Add dimensions to fullCanvas
*/

/*
API doc:

First do initialAuth
Then run getColors
Then run getCanvas

Request types:
- "initialAuth", params: none
- "getCanvas",   params: "userID"
- "postTile"     params: "userID", "X", "Y", "colorID"
- "getTileData"  params: "userID", "X", "Y" (Not finished)
- "getColors"    params: "userID"

Response types ("responseType"):
- "tileUpdate", params: "X", "Y", "colorID"
- "authSuccessful", params: "uuid"
- "fullCanvas", params: Array of "X", "Y", "colorID"
- "colorList",  params: Array of "R", "G", "B", "ID"
*/

